parser

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

* Copyright (c) 2000-2018, 达梦数据库有限公司. * All rights reserved.

* Copyright (c) 2000-2018, 达梦数据库有限公司. * All rights reserved.

Index

Constants

View Source
const (
	NORMAL int = iota
	INT
	DOUBLE
	DECIMAL
	STRING
	HEX_INT
	WHITESPACE_OR_COMMENT
	NULL
)
View Source
const (
	YYEOF         = -1    /** This character denotes the end of file */
	ZZ_BUFFERSIZE = 16384 /** initial size of the lookahead buffer */
	/** lexical states */
	YYINITIAL = 0
)
View Source
const (
	ZZ_UNKNOWN_ERROR = 0
	ZZ_NO_MATCH      = 1
	ZZ_PUSHBACK_2BIG = 2
)

error codes

View Source
const (
	MAX_DEC_LEN = 38
)

Variables

View Source
var ZZ_ACTION = zzUnpackActionNoParams()

* * Translates DFA states to action switch labels.

View Source
var ZZ_ACTION_PACKED_0 []rune = []rune{}/* 130 elements not displayed */
View Source
var ZZ_ATTRIBUTE []int = zzUnpackAttributeNoParams()

* * ZZ_ATTRIBUTE[aState] contains the attributes of state <code>aState</code>

View Source
var ZZ_ATTRIBUTE_PACKED_0 []rune = []rune{0004, 0000, 0001, 0010, 0004, 0000, 0003, 0011, 0001, 0001, 0001, 0011, 0010, 0001, 0001, 0011,
	0017, 0001, 0004, 0011, 0001, 0001, 0001, 0011, 0001, 0000, 0002, 0011, 0001, 0001, 0001, 0000,
	0003, 0011, 0001, 0001, 0001, 0011, 0001, 0000, 0003, 0001, 0002, 0011, 0001, 0000, 0001, 0011,
	0002, 0000, 0001, 0011, 0004, 0000, 0002, 0011, 0001, 0001, 0001, 0000, 0003, 0001, 0003, 0000,
	0003, 0011, 0001, 0001, 0020, 0000, 0001, 0011, 0001, 0000, 0001, 0011, 0002, 0001}
View Source
var ZZ_CMAP = zzUnpackCMap(ZZ_CMAP_PACKED)

* * Translates characters to character classes

View Source
var ZZ_CMAP_PACKED []rune = []rune{}/* 208 elements not displayed */

* * Translates characters to character classes

View Source
var ZZ_ERROR_MSG []string = []string{
	"Unknown internal scanner error",
	"Error: could not match input",
	"Error: pushback Value was too large"}

error messages for the codes above

View Source
var ZZ_LEXSTATE []int = []int{0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 4, 4, 7, 7, 8, 8}

* * ZZ_LEXSTATE[l] is the state in the DFA for the lexical state l * ZZ_LEXSTATE[l+1] is the state in the DFA for the lexical state l * at the beginning of a line * l is of the form l = 2*k, k a non negative integer

View Source
var ZZ_ROWMAP = zzUnpackRowMapNoParams()

* * Translates a state to a row index in the transition table

View Source
var ZZ_ROWMAP_PACKED_0 []rune = []rune{}/* 208 elements not displayed */
View Source
var ZZ_TRANS []int = zzUnpackTransNoParams()

* * The transition table of the DFA

View Source
var ZZ_TRANS_PACKED_0 []rune = []rune{}/* 780 elements not displayed */

Functions

This section is empty.

Types

type LVal

type LVal struct {
	Value    string
	Tp       int
	Position int
}

func (*LVal) String

func (l *LVal) String() string

type Lexer

type Lexer struct {
	// contains filtered or unexported fields
}

func NewLexer

func NewLexer(in io.RuneReader, debug bool) *Lexer

* * Creates a new scanner * * @param in the java.io.Reader to read input from.

func (*Lexer) Reset

func (lexer *Lexer) Reset(in io.RuneReader) *Lexer

func (*Lexer) Yylex

func (lexer *Lexer) Yylex() (*LVal, error)

* * Resumes scanning until the next regular expression is matched, * the end of input is encountered or an I/O-Error occurs. * * @return the next token * @exception java.io.IOException if any I/O-Error occurs

Jump to

Keyboard shortcuts

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