Implemented an abstract syntax tree

This commit is contained in:
2024-06-30 22:54:59 +02:00
parent 27c707b6ff
commit f479b5a03a
28 changed files with 422 additions and 315 deletions

View File

@ -0,0 +1,12 @@
package keyword
const (
Loop = "loop"
Return = "return"
)
// Map is a map of all keywords used in the language.
var Map = map[string][]byte{
Loop: []byte(Loop),
Return: []byte(Return),
}