https://github.com/saetar/Interpreter
Racket interpreter written in C
https://github.com/saetar/Interpreter
Last synced: 6 months ago
JSON representation
Racket interpreter written in C
- Host: GitHub
- URL: https://github.com/saetar/Interpreter
- Owner: saetar
- Created: 2015-10-17T18:14:55.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-17T18:23:16.000Z (over 9 years ago)
- Last Synced: 2024-04-24T16:41:45.208Z (about 1 year ago)
- Language: C
- Homepage:
- Size: 242 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.txt
Awesome Lists containing this project
- AwesomeInterpreter - Interpreter
README
Interpreter for Racket code made in C.
It is split up into 3 different sections:
1) Tokenizer (tokenizer.c)
2) Parser (parser.c)
3) Interpreter (interpreter.c)Takes in a name of a Racket text file as command-line argument and prints results out to stdout.
talloc.c makes a "tracked allocation" of memory so I don't have to worry about freeing things at the end of execution.
value.h provides a struct for keeping track of our tokens after tokenization.
linkedlist.h proviedes a struct for a linkedlist of values as one might imagine.Unfortunately, I was not able to finish a REPL (Read evaluate print loop) so that we could interpret on the fly in the command-line. (repl.c)