Inspiration
We wanted to try and create a compiler while learning the syntax of lex and yacc. And by jove, we've done something!
How it works
yacc and lex use our .l and .y files to create souce files used to build a compiler. We've defined the tokens, syntax, and how things are mapped to x86 assembly. We use a shell script to bring it together and compile some working code!
Challenges I ran into
Tiredness, odd documentation, and ancient behaviour of ancient development tools.
Accomplishments that I'm proud of
We can add integers together, compare them, and (mostly) store and access variables! We've also put totherer an interesting way of allocating registers to avoid any memory usage!
What I learned
Compilers are a lot more complicated then they look!
What's next for eight-track
Soon, we hope to add functions, and flow control!
Log in or sign up for Devpost to join the conversation.