Skip to content

Releases: MatthewKosloski/torrey

torreyc-3.0.1

18 Jul 04:45
e8d5f09
Compare
Choose a tag to compare
  • Includes a bug fix addressing issue 1.

torreyc-2.0.1

10 May 22:27
Compare
Choose a tag to compare

Patch: return successful exit code

torreyc-1.0.1

10 May 22:45
Compare
Choose a tag to compare

Patch: return successful exit code to OS

torreyc-3.0.0

09 May 06:10
Compare
Choose a tag to compare

Version 3.0.0 of the Torrey compiler.

This compiler implements (part) of the following grammar:

program       -> expr* ;

expr          -> primitive
               | identifier
               | unary
               | binary
               | print
               | let
               | not
               | and
               | or
               | if ;

boolean       -> "true" | "false" ;
integer       -> [0-9]+ ;
identifier    -> [a-zA-Z_$]+ [a-zA-Z0-9_$!?-]* ;
primitive     -> integer | boolean ;
unary         -> "(" "-" expr ")" ;
binary        -> "(" ("+" | "-" | "*" | "/" | "==" | "<" | "<=" | ">" | ">=") expr expr ")" ;
print         -> "(" ("print" | "println") expr+ ")" ;
let           -> "(" "let" "[" (identifier expr)* "]" expr* ")" ;
not           -> "(" "not" expr ")" ;
and           -> "(" "and" expr expr+ ")" ;
or            -> "(" "or" expr expr+ ")" ;
if            -> "(" "if" expr expr expr? ")" ;

Contents of the release:

  • Dependent run-time C code runtime.c and runtime.h.
  • The JAR executable torreyc-3.0.0.jar of the compiler.

System requirements:

  • Ubuntu (Tested on Ubuntu 18.04 LTS)
  • gcc (Tested on 7.5.0)
  • javac (Tested on 11.0.10 and 12.0.2)

torreyc-2.0.0

10 Mar 09:33
Compare
Choose a tag to compare

Version 2.0.0 of the Torrey compiler.

This compiler implements the following grammar:

program       -> expr* ;

expr          -> integer
               | identifier
               | unary
               | binary
               | print
               | let ;

integer       -> [0-9]+ ;
identifier    -> [a-zA-Z_$]+ [a-zA-Z0-9_$!?-]* ;
unary         -> "(" "-" expr ")" ;
binary        -> "(" ("+" | "-" | "*" | "/") expr expr ")" ;
print         -> "(" ("print" | "println") expr+ ")" ;
let           -> "(" "let" "[" (identifier expr)* "]" expr* ")" ;

Contents of the release:

  • Dependent run-time C code runtime.c and runtime.h.
  • The JAR executable torreyc-2.0.0.jar of the compiler.

System requirements:

  • Ubuntu (Tested on Ubuntu 18.04 LTS)
  • gcc (Tested on 7.5.0)
  • javac (Tested on 11.0.10 and 12.0.2)

torreyc-1.0.0

17 Feb 19:41
Compare
Choose a tag to compare

Version 1.0.0 of the Torrey compiler.

This compiler implements the following grammar:

program       -> expression* ;

expression    -> integer
               | unary
               | binary
               | print ;

integer       -> [0-9]+ ;
unary         -> "(" "-" expression ")" ;
binary        -> "(" ("+" | "-" | "*" | "/") expression expression ")" ;
print         -> "(" ("print" | "println") expression+ ")" ;

Contents of the release:

  • Dependent run-time C code runtime.c and runtime.h.
  • The JAR executable torreyc-1.0.0.jar of the compiler.

System requirements:

  • Ubuntu (Tested on Ubuntu 18.04 LTS)
  • gcc (Tested on 7.5.0)
  • javac (Tested on 11.0.10 and 12.0.2)