Tidak Ada Deskripsi

Beoran 6c4c374381 Make EOF work slightly better in muesly command interpreter. 5 tahun lalu
cmd 6c4c374381 Make EOF work slightly better in muesly command interpreter. 5 tahun lalu
test b19c0c32ae A few things work better now 5 tahun lalu
LICENSE 534d46d7c8 Add MIT LICENSE. 5 tahun lalu
README.md d765d498f6 Add README.md 5 tahun lalu
alias.go 1a81159c54 Support operators, finally, if in a slightly roundabout way. Also support aliasing. 5 tahun lalu
ast.go 027d3a2f29 Signatures for all callables. Think about type system. 5 tahun lalu
ast_test.go 969734636f Improve the lexer and work on the parser. 6 tahun lalu
block.go 027d3a2f29 Signatures for all callables. Think about type system. 5 tahun lalu
bool.go 027d3a2f29 Signatures for all callables. Think about type system. 5 tahun lalu
builtin.go 1a81159c54 Support operators, finally, if in a slightly roundabout way. Also support aliasing. 5 tahun lalu
callable.go 027d3a2f29 Signatures for all callables. Think about type system. 5 tahun lalu
cover.go 027d3a2f29 Signatures for all callables. Think about type system. 5 tahun lalu
defined.go 027d3a2f29 Signatures for all callables. Think about type system. 5 tahun lalu
design_muesli.muesli 5e6a17f72a Starting to become runnable. 5 tahun lalu
doc.go 5ffa4a6725 Lexer is still flaky, considering switching to state machine based lexer. 6 tahun lalu
door.go 027d3a2f29 Signatures for all callables. Think about type system. 5 tahun lalu
empty.go 027d3a2f29 Signatures for all callables. Think about type system. 5 tahun lalu
error.go 027d3a2f29 Signatures for all callables. Think about type system. 5 tahun lalu
float.go 027d3a2f29 Signatures for all callables. Think about type system. 5 tahun lalu
go.mod 5e6a17f72a Starting to become runnable. 5 tahun lalu
go.sum 5e6a17f72a Starting to become runnable. 5 tahun lalu
help.go 027d3a2f29 Signatures for all callables. Think about type system. 5 tahun lalu
int.go 027d3a2f29 Signatures for all callables. Think about type system. 5 tahun lalu
keyword.go 027d3a2f29 Signatures for all callables. Think about type system. 5 tahun lalu
lexer.go 1a81159c54 Support operators, finally, if in a slightly roundabout way. Also support aliasing. 5 tahun lalu
lexer_test.go 433b2c57d0 Parser starts to work correctly. 6 tahun lalu
list.go 027d3a2f29 Signatures for all callables. Think about type system. 5 tahun lalu
logger.go 433b2c57d0 Parser starts to work correctly. 6 tahun lalu
map.go 027d3a2f29 Signatures for all callables. Think about type system. 5 tahun lalu
muesli.go 5ffa4a6725 Lexer is still flaky, considering switching to state machine based lexer. 6 tahun lalu
parser.go 1a81159c54 Support operators, finally, if in a slightly roundabout way. Also support aliasing. 5 tahun lalu
parser_test.go 5e6a17f72a Starting to become runnable. 5 tahun lalu
redispatch.go 027d3a2f29 Signatures for all callables. Think about type system. 5 tahun lalu
signature.go 027d3a2f29 Signatures for all callables. Think about type system. 5 tahun lalu
string.go 027d3a2f29 Signatures for all callables. Think about type system. 5 tahun lalu
token.go 07e59b880b Consider adding operators as commands. 5 tahun lalu
type.go 027d3a2f29 Signatures for all callables. Think about type system. 5 tahun lalu
value.go 027d3a2f29 Signatures for all callables. Think about type system. 5 tahun lalu
vm.go 027d3a2f29 Signatures for all callables. Think about type system. 5 tahun lalu
vm_test.go ad6c510461 WIP return or fail. 5 tahun lalu
word.go 027d3a2f29 Signatures for all callables. Think about type system. 5 tahun lalu

README.md

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