monkey-lang: github.com/prologic/monkey-lang/parser Index | Files

package parser

import "github.com/prologic/monkey-lang/parser"

Index

Package Files

parser.go parser_tracing.go

Constants

const (
    LOWEST int
    OR
    AND
    NOT
    IN
    ASSIGN       // := or =
    EQUALS       // ==
    LESSGREATER  // > or <
    BitwiseOR    // |
    BitwiseXOR   // ^
    BitwiseAND   // &
    BitwiseShift // << or >>
    SUM          // + or -
    PRODUCT      // * / or %
    PREFIX       // -X or !X
    CALL         // myFunction(X)
    INDEX        // array[index]

)

type Parser Uses

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

func New Uses

func New(l *lexer.Lexer) *Parser

func (*Parser) Errors Uses

func (p *Parser) Errors() []string

func (*Parser) ParseProgram Uses

func (p *Parser) ParseProgram() *ast.Program

Package parser imports 6 packages (graph) and is imported by 4 packages. Updated 2019-04-05. Refresh now. Tools for package owners.