parser

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2023 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// an empty environment to execute custom rules
	BuiltinsCopy types.Environment = types.MakeBaseEnvironment()
)

Functions

func AddCustomRule

func AddCustomRule(rule types.Appliable)

Must be called before the parsing of files to affect them

func HandleClassicWord

func HandleClassicWord(word string) types.Object

try to apply parsing rule in order (including custom rules), fallback to an identifier when nothing matches

func Parse

func Parse(str string) (*types.List, error)

Types

type ConvertString

type ConvertString = func(string) (types.Object, bool)

Jump to

Keyboard shortcuts

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