https://github.com/hriddhidey/c_compiler
A fairly simplistic C++ compiler made using flex and bison.
https://github.com/hriddhidey/c_compiler
Last synced: 7 months ago
JSON representation
A fairly simplistic C++ compiler made using flex and bison.
- Host: GitHub
- URL: https://github.com/hriddhidey/c_compiler
- Owner: hriddhidey
- License: gpl-3.0
- Created: 2015-12-19T07:06:49.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-19T08:20:08.000Z (over 10 years ago)
- Last Synced: 2025-01-22T18:32:31.761Z (over 1 year ago)
- Language: Yacc
- Size: 15.6 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# C++ Compiler
A fairly simplistic C++ compiler made using flex and bison.
Compile the lex and yacc files, and make a 'demo.c' file
with a simeplistic C++ code of your choice.
Try this for example -
\#include\
int main()
{
int a=5;
return;
}
Go ahead and feel free to tinker with the grammar to try and understand
the full scope of this compiler, and its shortcomings(of which it has a sizeable amount),
and try to fix them if you can. I look forward to seeing you do amazing things with this.
Warm Regards,
Good Luck,
Goodspeed.