recursion

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Examples

Constants

View Source
const SP = ' '

Variables

This section is empty.

Functions

func AndInf

func AndInf(p *ast.Parser) (*ast.Node, error)

func Finite

func Finite(p *ast.Parser) (*ast.Node, error)
Example
p, _ := ast.New([]byte("0+1 + 10"))
fmt.Println(p.Expect(ast.Capture{
	TypeStrings: []string{"Finite"},
	Value:       Finite,
}))
Output:

["Finite",[["Value","0"],["Value","1"],["Value","10"]]] <nil>

func Infinite

func Infinite(p *ast.Parser) (*ast.Node, error)

func Value

func Value(p *ast.Parser) (*ast.Node, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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