KEKW programs examples are located in the ./kekw-examples.
Interpreter uses hand-written lexer which is based on the Java's StreamTokenizer.
Parser was generated using GNU Bison 3.7.1.
YACC file for generation with detailed grammar description can be found at ./src/parser/parser.y.
./scripts/run.sh
./scripts/run.sh ./kekw-examples/prog.kekw To run all tests:
./scripts/run_tests.shBoth commands support verbose option for enhanced logging.
./scripts/generate_parser.shAll symbols on the line after the symbol # will be ignored by the interpreter.
String is any sequence of characters enclosed in double quotes.
Built-in function that takes one argument. The function prints the argument to the user terminal. If the argument is a Literal, it prints the value of that literal. In any other case, it prints the representation of the lexem in AST.