Skip to content

An interpreter for bc style expressions and functions written in OCaml

Notifications You must be signed in to change notification settings

Marco-Pagani/Ocaml_bc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BC INTERPRETER

Marco Pagani | Ximena Jaramillo

Thanks for helping us get this far Prof. Dobra <3

How to Run

Requires Core and Dune to run. Our code doesn't have any quirks other than the below, however it lacks error checking, so make sure inputs are correct, or use our example tests.

NOTE: expressions do not modify variable values. Instead of i++ use i = i++ to update the value.

Use dune runtest to execute the tests, which should not return any errors. The tests cover:

  • basic expressions
  • variable assignment
  • single value operators
  • two value operators
  • reassigning variables
  • if statements
  • while loops
  • for loops
  • recursive functions
  • multi variable functions
  • breaks and continues

About

An interpreter for bc style expressions and functions written in OCaml

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages