parser

package
v0.0.0-...-3974014 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

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

Parser keeps data about the whole parser process.

func New

func New(l *lexer.Lexer) *Parser

New creates a new Parser.

func (*Parser) GetBC

func (p *Parser) GetBC() *bytecode.Bytecode

GetBC gets the bytecode resulted of a parser.

func (*Parser) GetCP

func (p *Parser) GetCP() *cp.CP

GetCP gets the constant pool resulted of a parser.

func (*Parser) Parser

func (p *Parser) Parser() error

Parser is responsible for parser an algorithm.

algoritmo

: declaracao_algoritmo
  (var_decl_block)?
  stm_block
  EOF
;

Jump to

Keyboard shortcuts

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