Commit Graph

6 Commits

Author SHA1 Message Date
d7c08ed090 Add new example showing off how branches work
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2020-11-10 18:04:37 -08:00
c6212f5597 Finish up old example that shows off basic expressions and funcalls
The VM now supports the various int comparison methods. An example of a
"pow" method is given to show off recursion, which means we're now
TURING COMPLETE!

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2020-11-09 16:50:16 -08:00
e2c84ba7c2 Add hello world example
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2020-10-07 17:23:49 -07:00
f0032afe12 Add function expr parsing
* Introduce new `fn` keyword
* Function example is added to examples/expr.not

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2020-09-18 16:39:06 -07:00
7228732128 Add hypothetical "pow" function syntax
includes function declaration syntax + ternary expression syntax

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2020-09-17 13:31:41 -07:00
38b7124fe2 Add rerun_except crate, and small example code
* rerun_except will ensure a build doesn't rerun if a *.not file is
  modified, which it would otherwise do
* Add examples/expr.not with some basic assignment statements and
  function calls

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2020-09-17 13:26:38 -07:00