parser

package
v0.0.0-...-f2efcc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KEYWORD_CALL_CODE = []int{2, 0, 11, 11}
View Source
var KEYWORD_CONST_CODE = []int{2, 14, 13, 18, 19}
View Source
var KEYWORD_IMPORT_CODE = []int{8, 12, 15, 14, 17, 19}
View Source
var KEYWORD_RESET_CODE = []int{17, 4, 18, 4, 19}
View Source
var KEYWORD_VAR_CODE = []int{21, 0, 17}

Functions

func NewTokenTest

func NewTokenTest(token *lexer.Token, lexer *lexer.Lexer) *tokentester

Types

type Parser

type Parser struct {
	Ast []interface{} // abstract syntax tree (ast) output
	// contains filtered or unexported fields
}

func NewParser

func NewParser(lexer *lexer.Lexer) *Parser

func (*Parser) GetV

func (parser *Parser) GetV() bool

func (*Parser) Parse

func (parser *Parser) Parse()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL