https://github.com/markcheno/topaz
A compiler/interpreter written in C loosely based on Ruby syntax
https://github.com/markcheno/topaz
Last synced: about 2 months ago
JSON representation
A compiler/interpreter written in C loosely based on Ruby syntax
- Host: GitHub
- URL: https://github.com/markcheno/topaz
- Owner: markcheno
- Created: 2012-10-06T15:46:54.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2012-10-06T15:55:59.000Z (over 13 years ago)
- Last Synced: 2025-03-21T16:54:15.304Z (over 1 year ago)
- Language: C
- Homepage:
- Size: 1.51 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Topaz - a toy compiler/interpreter loosely based on Ruby syntax. This was originally designed to be cross platform and run under PALMOS on the Palm Pilot (see *archive* branch). It also works via the command line. It compiles and runs, but has not been tested on 64bit machines. YMMV.
There are two parts: the compiler, which compiles down to bytecode, and the interpreter, which executes the bytecode.
For a description of the language see doc/topaz.pdf and ignore the PalmOS stuff.
- build: make
- compile a script: ./tc -o tower.bin test/tower.t
- run a script: ./tr tower.bin
- There are a number of test scripts in the test directory
All files copyright (c) 2012 Mark Chenoweth and released under the MIT license.