goyacc

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2013 License: Apache-2.0 Imports: 9 Imported by: 0

README

The generated parser is already included this repo.

These instructions are only required for developers modifying the parser.

Building Parser

  1. Install nex - https://github.com/blynn/nex
  2. Install go's yacc tool - http://golang.org/cmd/yacc/
  3. Run build.sh

Documentation

Index

Constants

View Source
const ALL = 57428
View Source
const ALTER = 57346
View Source
const AND = 57406
View Source
const ANY = 57427
View Source
const ARRAY = 57431
View Source
const AS = 57377
View Source
const ASC = 57382
View Source
const BETWEEN = 57347
View Source
const BUCKET = 57348
View Source
const BY = 57381
View Source
const CASE = 57422
View Source
const CAST = 57349
View Source
const COLLATE = 57350
View Source
const COLON = 57393
View Source
const COMMA = 57392
View Source
const CONCAT = 57405
View Source
const CREATE = 57367
View Source
const DATABASE = 57351
View Source
const DELETE = 57352
View Source
const DESC = 57383
View Source
const DISTINCT = 57374
View Source
const DIV = 57404
View Source
const DOT = 57421
View Source
const DROP = 57368
View Source
const EACH = 57353
View Source
const ELSE = 57425
View Source
const END = 57426
View Source
const EQ = 57409
View Source
const EXCEPT = 57354
View Source
const EXISTS = 57355
View Source
const EXPLAIN = 57366
View Source
const FALSE = 57395
View Source
const FIRST = 57430
View Source
const FROM = 57378
View Source
const GROUP = 57386
View Source
const GT = 57411
View Source
const GTE = 57412
View Source
const HAVING = 57387
View Source
const IDENTIFIER = 57399
View Source
const IF = 57356
View Source
const IN = 57432
View Source
const INDEX = 57371
View Source
const INLINE = 57357
View Source
const INSERT = 57358
View Source
const INT = 57397
View Source
const INTERSECT = 57359
View Source
const INTO = 57360
View Source
const IS = 57418
View Source
const JOIN = 57361
View Source
const LBRACE = 57388
View Source
const LBRACKET = 57390
View Source
const LIKE = 57417
View Source
const LIMIT = 57384
View Source
const LPAREN = 57415
View Source
const LT = 57413
View Source
const LTE = 57414
View Source
const MINUS = 57402
View Source
const MISSING = 57420
View Source
const MOD = 57433
View Source
const MULT = 57403
View Source
const NE = 57410
View Source
const NOT = 57408
View Source
const NULL = 57396
View Source
const NUMBER = 57398
View Source
const OFFSET = 57385
View Source
const ON = 57372
View Source
const OR = 57407
View Source
const ORDER = 57380
View Source
const OVER = 57429
View Source
const PATH = 57362
View Source
const PLUS = 57401
View Source
const POOL = 57365
View Source
const PRIMARY = 57369
View Source
const RBRACE = 57389
View Source
const RBRACKET = 57391
View Source
const RPAREN = 57416
View Source
const SELECT = 57376
View Source
const STRING = 57400
View Source
const THEN = 57424
View Source
const TRUE = 57394
View Source
const UNION = 57363
View Source
const UNIQUE = 57375
View Source
const UPDATE = 57364
View Source
const USING = 57373
View Source
const VALUED = 57419
View Source
const VIEW = 57370
View Source
const WHEN = 57423
View Source
const WHERE = 57379

Variables

This section is empty.

Functions

This section is empty.

Types

type Element

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

type Lexer

type Lexer []*frame

func NewLexer

func NewLexer(in io.Reader) Lexer

func (Lexer) Error

func (yylex Lexer) Error(e string)

func (Lexer) Lex

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

func (Lexer) Text

func (stack Lexer) Text() string

type N1qlParser

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

func NewN1qlParser

func NewN1qlParser() *N1qlParser

func NewN1qlParserWithDebug

func NewN1qlParserWithDebug(debug int) *N1qlParser

func (*N1qlParser) Parse

func (u *N1qlParser) Parse(input string) (returnStatement ast.Statement, err error)

type Stack

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

func (*Stack) Pop

func (s *Stack) Pop() (value interface{})

Remove the top element from the stack and return it's value If the stack is empty, return nil

func (*Stack) Push

func (s *Stack) Push(value interface{})

Push a new element onto the stack

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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