- My first successful compiler project
- Basically takes a simple mathematical expression like "6 * 5 + ( 3 / 2 * 1 )" and compiles it into NASM x64 assembly for Mac.
- This code is spitted out to the console.
- I copy this code and manually assemble it with Nasm for MacOS.
- and then link it to create an executable !
- There are many todos left, like considering unary negatives like "-3", doing error checks and exceptions.
- These are on my list, but I want to create a basic working compiler soon, to understand the theory.
- Lots of fun ! Hope you enjoy !!
-
Notifications
You must be signed in to change notification settings - Fork 0
deepanprabhu/simple-expression-compiler
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Simple compiler - Parses a simple mathematical expression and generates NASM Assembly code
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published