This commit is contained in:
2026-02-22 18:01:45 +00:00
parent 9f20c35b2a
commit 009260c95c
3 changed files with 32 additions and 1 deletions

3
README.md Normal file
View File

@@ -0,0 +1,3 @@
# NEX
...

2
nel

Submodule nel updated: fe581affb7...d600fc7232

28
nex.nel Normal file
View File

@@ -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' };
}
}