arithmetic_impro

package
v0.0.0-...-e7b8920 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2021 License: GPL-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

View Source
const (
	E_F_S_T   = iota
	E_S       = iota
	E_S_T     = iota
	NEW_AXIOM = iota

	LPAR   = 0x8000 + iota - _NUM_NONTERMINALS
	NUMBER = 0x8000 + iota - _NUM_NONTERMINALS
	PLUS   = 0x8000 + iota - _NUM_NONTERMINALS
	RPAR   = 0x8000 + iota - _NUM_NONTERMINALS
	TIMES  = 0x8000 + iota - _NUM_NONTERMINALS
)

Variables

View Source
var Stats parsingStats

Stats contains some statistics that may be checked after a call to ParseString or ParseFile

Functions

func ParseFile

func ParseFile(filename string, numThreads int) (*symbol, error)

ParseFile parses a file in parallel using an operator precedence grammar. It takes as input a filename and the number of threads, and returns a boolean representing the success or failure of the parsing and the symbol at the root of the syntactic tree (if successful).

func ParseString

func ParseString(str []byte, numThreads int) (*symbol, error)

ParseString parses a string in parallel using an operator precedence grammar. It takes as input a string as a slice of bytes and the number of threads, and returns a boolean representing the success or failure of the parsing and the symbol at the root of the syntactic tree (if successful).

func SetCPUProfileFile

func SetCPUProfileFile(file *os.File)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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