Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works

Random project

Haskell-Pascal-Interpreter

View on GitHub

Anyone may press Interesting, signed in or not. It helps others find this project.

Member rating

No ratings yet.

Sign in to rate this project.

README

Haskell-Pascal-Interpreter

To run the project, run "Cabal run src/test#.pas"

To-Do:

  • [x] Implement visitor
  • [x] Program name
  • [x] Variable declarations
  • [x] Main program block
  • [x] Arithmetic expressions (with variables)
  • [x] Boolean expressions (with variables)
  • [ ] If-then-else statements
  • [ ] Case statements
  • [x] Special math expressions (sqrt, sin, cos, ln, exp)
  • [ ] Readln
  • [x] Writeln
  • [x] Variable assignment
  • [x] Static scoping
  • [x] Global variables vs. local variables
  • [x] Scope chaining and position tracking
  • [ ] While loops
  • [ ] For loops
  • [ ] Break/continue in loops
  • [x] User defined functions
  • [x] User defined procedures
  • [x] Formal parameter passing-in for functions and procedures (Bonus)