squash! updated readme to improve documentation
This commit is contained in:
parent
87b11cff7a
commit
8d2811be87
1 changed files with 3 additions and 2 deletions
|
|
@ -6,7 +6,8 @@ This shell was created to have extremely simple syntax. S-Expressions were chose
|
||||||
|
|
||||||
## Basic Syntax
|
## Basic Syntax
|
||||||
When in doubt the `print_ast` utility can be used to examine the output of the Lexing and Parsing process. Here you can spot any bugs regarding syntax.
|
When in doubt the `print_ast` utility can be used to examine the output of the Lexing and Parsing process. Here you can spot any bugs regarding syntax.
|
||||||
`$ print_ast (example invocation`
|
|
||||||
|
`$ print_ast (example invocation)`
|
||||||
|
|
||||||
### Lists
|
### Lists
|
||||||
Any sequence of items within a set of parenthesis is a list.
|
Any sequence of items within a set of parenthesis is a list.
|
||||||
|
|
@ -39,7 +40,7 @@ Function call: `(append () 1 2 3)`
|
||||||
|
|
||||||
System binary call: `(vim Readme.md)`
|
System binary call: `(vim Readme.md)`
|
||||||
|
|
||||||
Control flow statement (enabled by function call): `(if (eq "example" (fread 'test_file')) (print "test worked) (rm -rf /))`
|
Control flow statement: `(if (eq "example" (fread 'test_file')) (print "test worked) (rm -rf /))`
|
||||||
|
|
||||||
There may be alternative REPLs, officially or from community members, that do not exhibit this behavior.
|
There may be alternative REPLs, officially or from community members, that do not exhibit this behavior.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue