ChocoPy is a restricted subset of Python 3, which can easily be compiled to a target such as RISC-V.
The language is fully specified using formal grammar, typing rules, and operational semantics.
The grammar however is left recursive and specified in EBNF.
This repository contains the ANTLR4 analag grammar to build the lexer & grammar.
- You'll need JDK11+
mvn clean install
The lexer & parser are automatically generated using the ANTLR maven plugin.