- 👋 Hi, I’m Shivananda, currently pursuing my Master's in Information Science at Texas A&M University, College Station. I have an undergraduate degree in Computer Science and previously worked as a Data Engineer at Target Corporation, India for three years.
- 👀 I’m interested in working on impactful problems in the field of Data Engineering and Analytics
- 🌱 I’m currently upskilling my cloud computing skills
- 📫 You can reach out to me on LinkedIn or via email at [email protected]
mini-c-compiler's Introduction
mini-c-compiler's People
Forkers
ayoub-root greycr0w vivek-reddy-1999 faizan326 lco16369kavita seif97x vybhavpai passioncracker egunduz34 madhus12 fairypanda rosangelav awanit512 prernashinde tangus-edmond franklinmatheus anilavakundu ajroxz yathish27 shubham11941140 sakshammahajan-arkin khusheimeda izarah20 alialmarhabi1 hagyeonglee patil-mandar mithmusq3 hyeonjeongbyeon shama-33 rumonkh0 compilernexusmini-c-compiler's Issues
What is dq , mlc , mlcline , dqline in lexical analyzer?
int scan, slcline=0, mlc=0, mlcline=0, dq=0, dqline=0;
Same code runs for your provided test4.c but not for our own file that we have created.
We have ran our test4.c code on our output file.
It shows perfect output for your file.
But,
It shows syntax error for the same code when we run it from the file that we create (For e.g. test99.c).
Can you please throw some light on this issue and why such stuff is happening?
parser.l:36:2: error: ‘yylval’ undeclared
I came across your project and i want to try and explore it so that i can understand more about compiler building. on the file of"Semantic Analysis", i used flex parser.l which was successful, i used bison -d parser.y which was also successfull. But when i do gcc lex.yy.c i get this error:
parser.l:36:2: error: ‘yylval’ undeclared (first use in this function); did you mean ‘yylex’?
int {yylval.ival = INT; return INT;}
^~~~~~
yylex
parser.l:36:2: note: each undeclared identifier is reported only once for each function it appears in
parser.l:36:16: error: ‘INT’ undeclared (first use in this function); did you mean ‘EINTR’?
int {yylval.ival = INT; return INT;}
^~~
EINTR
parser.l:37:16: error: ‘FLOAT’ undeclared (first use in this function); did you mean ‘F_LOCK’?
float {yylval.ival = FLOAT; return FLOAT;}
^~~~~
F_LOCK
parser.l:38:16: error: ‘VOID’ undeclared (first use in this function)
void {yylval.ival = VOID; return VOID;}
^~~~
parser.l:39:9: error: ‘ELSE’ undeclared (first use in this function); did you mean ‘EILSEQ’?
else {return ELSE;}
^~~~
How can i solve it?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.