parser

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseDir

func ParseDir(dir string) *ir.Module

func ParseInt

func ParseInt(s string) (int64, *types.IntType, error)

func ParseModule

func ParseModule(dir, mod string, m *ir.Module, fathers map[string]bool) *ast.ProgramNode

Types

type Parser

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

func NewParser

func NewParser(mod string, m *ir.Module, fathers map[string]bool) *Parser

func (*Parser) Parse

func (p *Parser) Parse(s string) string

func (*Parser) ParseAST

func (p *Parser) ParseAST(s string) *ast.ProgramNode

Jump to

Keyboard shortcuts

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