relapse

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package relapse contains the relapse validation language and the functions necessary for running it. See katydid.github.io for the language documentation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(relapse string) (*ast.Grammar, error)

Parse parses the relapse string into an ast (abstract syntax tree)

func Prepare

func Prepare(g *ast.Grammar) (*mem.Mem, error)

Prepare creates a memoizing object given the grammar. The memoizing object is used to memorize any previous states created from previous validations. This results in a more efficient execution each time the memoizing object is used to validate a parser.

func Validate

func Validate(m *mem.Mem, p parser.Interface) (bool, error)

Validate validates the parser with the given memoizing object, containing the grammar, for efficiency.

Types

This section is empty.

Directories

Path Synopsis
Package ast contains the abstract syntax tree for relapse.
Package ast contains the abstract syntax tree for relapse.
Package auto compiles a parsed relapse grammar into a visual pushdown automaton and executes it.
Package auto compiles a parsed relapse grammar into a visual pushdown automaton and executes it.
Package bnf contains the bnf (Backus–Naur Form) files for generating the parser, lexer, token and errors package.
Package bnf contains the bnf (Backus–Naur Form) files for generating the parser, lexer, token and errors package.
Package combinator provides a user friendly way of constructing a relapse abstract syntax tree.
Package combinator provides a user friendly way of constructing a relapse abstract syntax tree.
Code generated by compose-gen.
Code generated by compose-gen.
compose-gen
Command compose-gen generates some of the code in the compose package.
Command compose-gen generates some of the code in the compose package.
Package errors is generated from the bnf using gocc.
Package errors is generated from the bnf using gocc.
Code generated by funcs-gen.
Code generated by funcs-gen.
funcs-gen
Command funcs-gen generates some of the code in the funcs package.
Command funcs-gen generates some of the code in the funcs package.
Package interp contains functions to interpret the grammar.
Package interp contains functions to interpret the grammar.
Package lexer is generated from the bnf using gocc.
Package lexer is generated from the bnf using gocc.
Package mem contains functions to interpret and memoize the execution of the grammar.
Package mem contains functions to interpret and memoize the execution of the grammar.
Package name has functions for a parsed name expression which include compilation and evaluation.
Package name has functions for a parsed name expression which include compilation and evaluation.
Package parser is mostly generated from the bnf using gocc.
Package parser is mostly generated from the bnf using gocc.
Package protonum is used to rewrite field names to field numbers in relapse grammars.
Package protonum is used to rewrite field names to field numbers in relapse grammars.
Package token is generated from the bnf using gocc.
Package token is generated from the bnf using gocc.
Package types contains representations of the relapse types.
Package types contains representations of the relapse types.

Jump to

Keyboard shortcuts

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