1430533056 / c100 Goto Github PK
View Code? Open in Web Editor NEWThis project forked from iiicp/ccc
100天开发c编译器
This project forked from iiicp/ccc
100天开发c编译器
100天开发c编译器 build step: 1. cd c100/ 2. cd testcode/ 3. python build.py day1: 支持编译5+1-3*4/2 day2: 支持编译5+(1-3)*4/2 day3: 支持编译a=3;5+a*4/2-a; day4: 支持错误提示, eg 输入"4+3"会提示 ';' expected day5: 编译 a=3;a==3;a!=3;a>3;a>=3;a<3;a<=3; day6: 能编译如下if语句 a=3; if (a!=4) a = 5; a=3; if (a!=4) a = 5; else a = 6; a=3; if (a!=4) {a = 5;a = a + a;} else {a = a*a; a = a + 10;} day7: 编译 a=0; b=1; while (a < 10) {a = a+1; b=a+b;} b; day8: 支持文件读入,编译do-while和for语句 day9: 支持函数定义, 现在能编译如下语句 day10: 支持函数调用,支持递归,能编译 day11: 支持类型,函数类型,变量声明语句,能编译正式的c代码了 day12: 调整诊断代码,支持如下的错误诊断. 拆分测试。 day13: 添加一元操作符的支持,支持注释操作. 能编译 day14: 添加指针运算和sizeof操作 day15: 支持数组声明和指针访问 day16: 支持数组索引,添加编译脚本 int main() { int a[2][3]; a[1][0] = 5; a[1][1] = 6; return a[1][0] * a[1][1]; }
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.