Documentation
¶
Overview ¶
Package scanner. Contains some common data types, methods, and functions for all scanner implementations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LexemesStack ¶
LexemesStack a stack of lexemes.
func NewLexemesStack ¶
func NewLexemesStack() LexemesStack
NewLexemesStack creates a stack of lexemes.
func (*LexemesStack) Get ¶
func (stack *LexemesStack) Get(i int) lexeme.LexEvent
Get returns lexeme of the stack, without removing.
func (*LexemesStack) Peek ¶
func (stack *LexemesStack) Peek() lexeme.LexEvent
Peek returns lexeme of the stack from the end, without removing.
func (*LexemesStack) Pop ¶
func (stack *LexemesStack) Pop() lexeme.LexEvent
Pop pops a lexeme from the stack.
func (*LexemesStack) Push ¶
func (stack *LexemesStack) Push(lex lexeme.LexEvent)
Push pushes a lexeme onto the stack.
Click to show internal directories.
Click to hide internal directories.