瀏覽代碼

Merge branch 'master' of gitlab.com:beoran/muesli

Beoran 4 年之前
父節點
當前提交
64670b404b
共有 2 個文件被更改,包括 55 次插入0 次删除
  1. 21 0
      LICENSE
  2. 34 0
      README.md

+ 21 - 0
LICENSE

@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2018-2020 beoran
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.

+ 34 - 0
README.md

@@ -0,0 +1,34 @@
+# Muesli is a Multi Use Embeddable Scripting Language Implementation.
+
+## Introduction
+It is a scripting language implemented in Go, that has a simple command based
+TCL like syntax but with rich semantics. Unlice TCL, all values are typed,
+and many types are supported, not just string values. Additionaly, if so 
+desired, every symbol used in the syntax can be replaced by a key word, 
+leading to a native language programming feel.
+
+## Syntax
+
+A Muesli program consists of one or more commands, separated by newlines or 
+periods. Commands can be grouped together in blocks between braces {}. 
+Lists are formed bu placing their contents between brackest []. A single command 
+can be placed in parenthesis (), where the return value of the command will be 
+subsituted.
+
+A command starts with a word, and is followed by any number of arguments,
+which may be blocks, parenthesis, lists , or values. Like this, the language 
+itself has no control statements, such as if, these are implemented as commands 
+in stead.
+
+Muesly supports several kinds of values, namely: 
+- Integers
+- Floats 
+- Strings between "double quotes"
+- The booleans !true and !false
+- The nil value !nil
+- Words, which are simple runs of alphanumercial characters starting with a lower case lettter, such as foo
+- Types which are runs of alphanumerical characters starting with an upper case letter. such as Foo
+
+
+
+