This is a Compiler written in go. First Creating a interpretter then compiler
this is sudo languge that we will be writing the code for
let age =1;
let name = "YAL"
let result = 10 * (20/2)
let myarray = [1,2,3,4,5];
let myhash= {"name":"yal","type":"lang"}
let add = fn(a,b) {return a+b};
For a full list refer here
- lexer
- parser
- ast
- symbol table
- evaluator
- i wanted to undertsand how interpreters work, by creating one from scratch.
- only supports ASCII
- for supported operators refer here