A Java-based Python to x86 assembly compiler, following the implementation approach from "Crafting Interpreters". Currently in active development with new features being added regularly.
- arithmetic expression evaluation
- Variable, Local scoping
Python-x86/
βββ interpreter/
β βββ Documents/
β β βββ Grammar/ # Parser grammar documentation
β β βββ command_to_run/ # Execution commands
β βββ src/ # Source code
βββ tests/
β βββ arithmetic/ # Test cases
βββ README.md
- Java Development Kit (JDK) 8+
- Java compiler in PATH
# Clone repository
git clone https://github.com/patelalay231/Python-x86.git
cd Python-x86
## π Current Grammar
```ebnf
expression β equality ;
equality β comparison ( ( "!=" | "==" ) comparison )* ;
comparison β term ( ( ">" | ">=" | "<" | "<=" ) term )* ;
term β factor ( ( "-" | "+" ) factor )* ;
factor β unary ( ( "/" | "*" ) unary )* ;
unary β ( "!" | "-" ) unary | power ;
pow β primary ( "^" pow )* ;
primary β NUMBER | STRING | "true" | "false" | "none" | "(" expression ")" ;
Your Name - alay.patel@iitgn.ac.in Project Link: https://github.com/patelalay231/Python-x86.git