/simple-language-example

A simple showcase on how to create a simple math language in python with lark

Primary LanguagePython

simple-language-example

A simple showcase on how to create a simple math language in python with lark

Divided in 4 Steps:

  1. Basic parsing, first grammar definition
  2. AST-generation and AST-executor
  3. Advanced Features: builtin-function calls and builtin-constant lookup
  4. Advanced Features: function and variable definitions