parser

package
v0.0.0-...-82f5664 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const COLON = 57361
View Source
const CONST = 57349
View Source
const DOT = 57360
View Source
const EQUAL = 57359
View Source
const FLOAT = 57358
View Source
const IDENT = 57355
View Source
const INCLUDE = 57346
View Source
const INT = 57357
View Source
const LBRACE = 57362
View Source
const NAMESPACE = 57347
View Source
const ONEWAY = 57354
View Source
const OPTIONAL = 57352
View Source
const RBRACE = 57363
View Source
const REQUIRED = 57351
View Source
const SERVICE = 57353
View Source
const STRING = 57356
View Source
const STRUCT = 57350
View Source
const TYPEDEF = 57348

Variables

This section is empty.

Functions

func Parse

func Parse(r io.Reader) *ast.Program

Parse reads r and parses content to AST.

Types

type Lexer

type Lexer struct {
	scanner.Scanner
	Program *ast.Program
}

Lexer scans Thrift IDL to tokens.

func (*Lexer) Error

func (l *Lexer) Error(e string)

Error throws lexing error.

func (*Lexer) Lex

func (l *Lexer) Lex(lval *yySymType) int

Lex lexes chunk to token and returns the type of token.

Jump to

Keyboard shortcuts

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