build an interpreter for a simple language

E

eyalkz

Hi all,

I need help and source code in a school project
the project is in c - building an interpreter for a simple (invented) language

how do I implement: routines, variables and numbers...
routines can also call other routines (recursion is allowed)
do I need to build a symbol Table? what else?

where can I found source code for that kind of project?
I understand it is usually given to students...
Thanks, Eyal
 
T

Tom St Denis

eyalkz said:
Hi all,

I need help and source code in a school project
the project is in c - building an interpreter for a simple (invented) language

how do I implement: routines, variables and numbers...
routines can also call other routines (recursion is allowed)
do I need to build a symbol Table? what else?

You really should have shown up to class. Sucker.

If you're totally lost go buy the Dragon book and read it.

Tom
 
T

Tristan Miller

Greetings.

I need help and source code in a school project
the project is in c - building an interpreter for a simple (invented)
language

What, were the responses you got to the exact same question you posted in
article <[email protected]> not good enough
for you?

Use flex and bison (or lex and yacc).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top