Skip to content

interpreter written for programming languages course

Notifications You must be signed in to change notification settings

mawbye/interpreter-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Justin Lim and Elliot Mawby
Dave Musicant, CS251
Interpreter test input files readMe.txt

01 - tests letrec() by defining two recursive functions in letrec and then executes them in body. Also tests primitive arithmetics (+), (=), and (-).

02 - tests more primitive arithmetics: (*), (/), (<), (>), and (modulo). Also tests the difference between let and let*, which uses primitive (=).

03 - Demo cases from assignment example. Tests (car), (cdr), (cons), and (null?).

04 - simplified cases from previous Racket homework assignment. User defined functions first-n and nth that return the first-n and nth items of a given list. Tests (null?), (-), (=), (car), (cdr), and (cond).

Extra stuff: implemented (booleans?) primitive that tests whether input evaluates to a boolean. arithmetic primatives should evaluate to int or double based on input.

About

interpreter written for programming languages course

Resources

Stars

Watchers

Forks

Packages

No packages published