ozbridge / cucu_parser Goto Github PK
View Code? Open in Web Editor NEWParser for basic programming language
Parser for basic programming language
RISHABH JAIN 2020CSB1198 Assumptions: 1) Statement block cannot be empty. For example: if(a==b){ int x; } This is valid. if(a==b){ } This is invalid. 2) Data types are strictly limited to int annd char *. char ** or int * are invalid. 3) Expressions are shown in postfix format. 4) Operations between any tokens (even int and char*) are allowed as this does not deal with semantics. 5) As soon as an error is encountered parsing and tokenization stops immediately. 6) Only one variable can be declared or initialised at a time. 7) Ambiguous else always gets attached to closest if statement. 8) The valid statements are limited to assignment, if, if-else, while, return and ; 9) Comments will be ignored in the parser. 10) Assignment within expressions is considered invalid. (For eg: int a = b=5; This will be considered invalid) Commands: bison -d cucu.y flex cucu.l g++ cucu.tab.c lex.yy.c -lfl -o cucu ./cucu Sample1.cu ./cucu Sample2.cu ** Sample1.cu is valid, Sample2.cu is not.
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.