json

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Code generated by pogo DO NOT EDIT

Index

Constants

View Source
const (
	INT_LITERAL    = pogo.TokenType("INT_LITERAL")
	STRING_LITERAL = pogo.TokenType("STRING_LITERAL")
	BOOL_LITERAL   = pogo.TokenType("BOOL_LITERAL")
)

Variables

This section is empty.

Functions

func NewBufferedLexer

func NewBufferedLexer(r io.Reader) pogo.LexerIface

func Parse

func Parse(r io.Reader)

Types

type Lexer

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

func NewLexer

func NewLexer(in io.Reader) *Lexer

func NewLexerWithInit

func NewLexerWithInit(in io.Reader, initFun func(*Lexer)) *Lexer

NewLexerWithInit creates a new Lexer object, runs the given callback on it, then returns it.

func (*Lexer) Column

func (yylex *Lexer) Column() int

Column returns the current column number. The first column is 0.

func (*Lexer) Error

func (l *Lexer) Error(err string)

func (*Lexer) Lex

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

Lex runs the lexer. Always returns 0. When the -s option is given, this function is not generated; instead, the NN_FUN macro runs the lexer.

func (*Lexer) Line

func (yylex *Lexer) Line() int

Line returns the current line number. The first line is 0.

func (*Lexer) Offset

func (yylex *Lexer) Offset() int

Offset returns the current byte offset.

func (*Lexer) Stop

func (yyLex *Lexer) Stop()

func (*Lexer) Text

func (yylex *Lexer) Text() string

Text returns the matched text.

type LexerImpl

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

Bridges nex -> pogo.Lexer

func (*LexerImpl) At

func (b *LexerImpl) At(ps pogo.ParseState) pogo.Item

type ParserImpl

type ParserImpl struct {
	pogo.BaseParseState
	// contains filtered or unexported fields
}

func (*ParserImpl) Clone

func (p *ParserImpl) Clone() pogo.ParseState

func (*ParserImpl) HandleError

func (p *ParserImpl) HandleError(tok pogo.Item, err error)

func (*ParserImpl) Lexer

func (p *ParserImpl) Lexer() pogo.LexerIface

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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