diff --git a/README.md b/README.md new file mode 100644 index 0000000..fc70a41 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# NEX + +... diff --git a/nel b/nel index fe581af..d600fc7 160000 --- a/nel +++ b/nel @@ -1 +1 @@ -Subproject commit fe581affb723c888c1e9fe23908bcf2f764cabf8 +Subproject commit d600fc7232bdac004614122eb242f414fbe547c0 diff --git a/nex.nel b/nex.nel new file mode 100644 index 0000000..977fbee --- /dev/null +++ b/nex.nel @@ -0,0 +1,28 @@ +// NEX 4 + +here 'nex' is [do { + here 'language' is [create new language] + + return 'language' +}] + +here (nex (expressions)) means [ + do (expressions) in 'nex language' +] + +(interpret 'input') means { + here: 'previous character' is [nothing] + iterate over [pattern match all "." in 'input' as {'this character'}] { + if ['previous character' is something] { + + } + now: 'previous character' is 'this character'; + } +} + +loop (until 'termination') { + choose from [read console] as 'input' { + ('input' matches "end") does { now: termination }; + everything else does { interpret 'input' }; + } +} \ No newline at end of file