suraj44 / compiler-design Goto Github PK
View Code? Open in Web Editor NEWA miniature compiler for a subset of the C programming language
A miniature compiler for a subset of the C programming language
Constants in dec, hexa, things like 1L and 1e10 etc
Check if ordering of the rules is correct
Identify errors, like for example if a multiline comment is opened, is there a corresponding close, if there are additional close comments (*/)for the same open comment. If there's a semicolon at the end of a #include <stdio.h> for example
Work on integrating the symbol table in main() using a different file called symboltable.h
As it stands, line numbers for all tokens for all tokens are getting printed as 1.
Consider :
#include <stdio.h>
int main()
{ char b,c,d;
//int b;
if(1) {
int a;
b = a;
//func();
}
}
Current logic only checks if b was declared in its current scope
But what needs to actually happen is, it needs to go to current_scope->parent recursively till it goes to scope 0 to look for an instance of b.
The change needs to be made in parser.y in the logic corresponding to the production id: IDENTIFIER
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.