An open API service indexing awesome lists of open source software.

https://github.com/megaing/simple-language-example

A simple showcase on how to create a simple math language in python with lark
https://github.com/megaing/simple-language-example

Last synced: 10 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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