Implemented an abstract syntax tree
This commit is contained in:
src
build
AST.goCall.goExecute.goExpressionToRegister.goFunction.goInstruction.goKeyword.goLoop.goReturn.goTokenToRegister.goVariable.goVariableDefinition.go
asm
ast
compiler.goexpression
fs
keyword
token
errors
12
src/build/keyword/Keyword.go
Normal file
12
src/build/keyword/Keyword.go
Normal 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),
|
||||
}
|
Reference in New Issue
Block a user