Skip to content

nstebbins/turnt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

turnt

turn-based programming language

install

we use antlr 4.5, which is compatible with both OS X and the CLIC machines. to set up for OS X, run:

cd /usr/local/lib
sudo curl -0 http://www.antlr.org/download/antlr-4.5-complete.jar

run

to run the commands in src/Makefile, add the following to ~/.bash_profile (OS X) or ~/.bashrc (Linux):

export CLASSPATH=".:/usr/local/lib/antlr-4.5-complete.jar:$CLASSPATH"
alias antlr4='java -jar /usr/local/lib/antlr-4.5-complete.jar'
alias grun='java org.antlr.v4.runtime.misc.TestRig'

to build and run:

make # builds the translator and translates test.tt
java Main # runs the translated program

file structure

  • src: primary directory; contains up-to-date grammar and translator code
  • test: contains basic unit-testing structure for translator
  • template: contains the base and target code for "Hello World"
  • testbasic: basic ANTLR "Hello World"; helpful to use for ANTLR install debugging
  • doc: documentation, which for now only includes project proposal

About

turn-based programming language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published