genbylang
v1.1.5
open source , mit license , dependency free

// genby is a js-executed language built to stay
fully customizable , typed , and non-coder friendly

.. it's .. like lua , but yet simpler

genby strips syntax down to the minimum by treating everything as a function , so instead of block-heavy structures it leans on nested calls like a = b ( c ( d ) e ( ) , f )
and by default there is only one function - RETURN . so you may configure lang from scratch

the whole system is packaged as a single class where you define your own api , including control flow such as loops and branching , and that same class can also export an input field with highlighting and completions plus auto-generated markdown docs

the page below is a sort of walkthrough , you can see the smallest possible use of the library at minimal.html and beep-boop docs at agents.html

1. config your api
declare functions, variables, enums, and directives on a genby instance
example
config.js
idle
2. generate docs
generate markdown reference of your config via machine.docs()
reference.md
build the language first
3. make genby program
write a program in the lang you just defined . syntax highlighting and completions are from machine.inputDom()
program.genby
build the language first
waiting
4. run genby
runs your program via machine.execute() . the result shows up below
idle
output.txt
no output yet