/simple-compiler

Primary LanguageHaskellBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Simple Compiler

simple compiler written in Haskell for little language that has 3 type of statements.

  1. Input Statment: for getting input from user
! num1
  1. Replacement Statement: for setting values to variables. you can create new variables with this statement too.
num1 = 2
num2 = num1 + 1
  1. Output Statement: for logging variables in console.
? num1