denbeke / c-compiler Goto Github PK
View Code? Open in Web Editor NEWC compiler (of C subset) for the 'Compilers' course at University of Antwerp
C compiler (of C subset) for the 'Compilers' course at University of Antwerp
while(1) {
// ....
}
Zo'n dingen moeten we ook nog ondersteunen, momenteel faalt de assert van de while statement er nog op...
probleem met for loop en continue (gewoon om het niet te vergeten)
Check for self assignement when declaring a variable.
E.g: int a = a;
Should give an error.
@siriustnt, al een idee hoe we de types gaan doen?
Ik was aan't denken om een pointer
en een const
variabele toe te voegen aan de grammar, zodat die pointer
en const
gewoon mee nodes worden in de AST en oneindig recursief kunnen zijn...
Goto kunnen we wel implementeren, da's niet moeilijk...
and en or toevoegen
nested if's geven geen warning
Onderscheid tussen functie symbol en variable symbol wordt nog niet overal gemaakt:
Dit moet normaal gezien undeclared a
geven, niet?
int a() {
a = 5;
}
Dit wordt normaal gezien al wel correct behandeld (want dat mag in C, neem ik aan?):
int a() {
int a;
}
add support for negative integers
for(int i = 0; i < 5; i = i + 1) {
}
for(int i = 0; i < 5; i++) {
}
[ERROR] line 14: Symbol 'i' previously declared (on line 7)
Als ge bv deze input gebruikt, klopt die AST langs geen kanten
int b(int c, int d) {
}
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.