//
pkg.gl
Category
github.com/anirudhlakkaraju/go-compiler
src
monkey
parser
package
0.0.0-20241222112821-c0019c940163
Repository:
https://github.com/anirudhlakkaraju/go-compiler.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
6
Dependents
0
Files
530 SLOC
#
Functions
New
New initializes and returns a new Parser given a lexer.
#
Constants
CALL
myFunction(X).
EQUALS
==.
INDEX
myArray[index].
LESSGREATER
> or <.
LOWEST
Operator precedences, assigned incrementally using iota.
PREFIX
-X or !X.
PRODUCT
*.
SUM
+.
#
Structs
Parser
Parser parses a Monkey Lang string into an executable program statements.