lexer

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CellScriptLexerFUNC                   = 1
	CellScriptLexerPACKAGE                = 2
	CellScriptLexerIF                     = 3
	CellScriptLexerELSE                   = 4
	CellScriptLexerFOR                    = 5
	CellScriptLexerCONTINUE               = 6
	CellScriptLexerBREAK                  = 7
	CellScriptLexerIMPORT                 = 8
	CellScriptLexerRETURN                 = 9
	CellScriptLexerVECTOR                 = 10
	CellScriptLexerTABLE                  = 11
	CellScriptLexerUNION                  = 12
	CellScriptLexerVAR                    = 13
	CellScriptLexerL_CURLY                = 14
	CellScriptLexerR_CURLY                = 15
	CellScriptLexerL_BRACKET              = 16
	CellScriptLexerR_BRACKET              = 17
	CellScriptLexerCOMMA                  = 18
	CellScriptLexerIDENTIFIER             = 19
	CellScriptLexerTYPE                   = 20
	CellScriptLexerTYPE_INT               = 21
	CellScriptLexerTYPE_BOOL              = 22
	CellScriptLexerADD                    = 23
	CellScriptLexerSUB                    = 24
	CellScriptLexerMUL                    = 25
	CellScriptLexerDIV                    = 26
	CellScriptLexerMOD                    = 27
	CellScriptLexerASSIGN                 = 28
	CellScriptLexerLITERAL                = 29
	CellScriptLexerNUMBER                 = 30
	CellScriptLexerSTRING_LIT             = 31
	CellScriptLexerBOOL_LIT               = 32
	CellScriptLexerRAW_STRING_LIT         = 33
	CellScriptLexerINTERPRETED_STRING_LIT = 34
	CellScriptLexerWS                     = 35
	CellScriptLexerCOMMENT                = 36
	CellScriptLexerTERMINATOR             = 37
	CellScriptLexerLINE_COMMENT           = 38
	CellScriptLexerWS_DEFAULT             = 39
	CellScriptLexerCOMMENT_DEFAULT        = 40
	CellScriptLexerLINE_COMMENT_DEFAULT   = 41
	CellScriptLexerEOS                    = 42
)

CellScriptLexer tokens.

Variables

View Source
var CellScriptLexerLexerStaticData struct {
	ChannelNames           []string
	ModeNames              []string
	LiteralNames           []string
	SymbolicNames          []string
	RuleNames              []string
	PredictionContextCache *antlr.PredictionContextCache
	// contains filtered or unexported fields
}

Functions

func CellScriptLexerInit

func CellScriptLexerInit()

CellScriptLexerInit initializes any static state used to implement CellScriptLexer. By default the static state used to implement the lexer is lazily initialized during the first call to NewCellScriptLexer(). You can call this function if you wish to initialize the static state ahead of time.

Types

type CellScriptLexer

type CellScriptLexer struct {
	*antlr.BaseLexer
	// contains filtered or unexported fields
}

func NewCellScriptLexer

func NewCellScriptLexer(input antlr.CharStream) *CellScriptLexer

NewCellScriptLexer produces a new lexer instance for the optional input antlr.CharStream.

Jump to

Keyboard shortcuts

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