Versions in this module Expand all Collapse all v0 v0.1.1 Feb 22, 2019 v0.1.0 Feb 22, 2019 Changes in this version + const CALL + const CURRENT + const EQUALS + const LAND + const LESSGREATER + const LOR + const LOWEST + const NEXT + const PREFIX + const PRODUCT + const SUM + var TokenTypeMap = map[TokenType]string + func Parse(buf TokenBuffer) (*ast.Contract, error) + type DefaultTokenBuffer struct + func NewTokenBuffer(l *Lexer) *DefaultTokenBuffer + func (b *DefaultTokenBuffer) Peek(n peekNumber) Token + func (b *DefaultTokenBuffer) Read() Token + type DupSymError struct + Source Token + func (e DupSymError) Error() string + type Error struct + Reason string + Source Token + func (e Error) Error() string + type ExpectError struct + Expected TokenType + Source Token + func (e ExpectError) Error() string + type Lexer struct + func NewLexer(input string) *Lexer + func (l *Lexer) NextToken() Token + type NotExistSymError struct + Source Token + func (e NotExistSymError) Error() string + type Pos int + type PrefixError struct + Right ast.Expression + Source Token + func (e PrefixError) Error() string + type Token struct + Column Pos + Line int + Type TokenType + Val string + func (t Token) String() string + type TokenBuffer interface + Peek func(n peekNumber) Token + Read func() Token + type TokenType int + const Assign + const Asterisk + const AsteriskAssign + const Bang + const BoolType + const Comma + const Contract + const Dec + const EQ + const Else + const Eof + const Eol + const False + const Function + const GT + const GTE + const Ident + const If + const Illegal + const Inc + const Int + const IntType + const LT + const LTE + const Land + const Lbrace + const Lor + const Lparen + const Minus + const MinusAssign + const Mod + const ModAssign + const NOT_EQ + const Plus + const PlusAssign + const Rbrace + const Return + const Rparen + const Semicolon + const Slash + const SlashAssign + const String + const StringType + const True + const VoidType + func LookupIdent(ident string) TokenType