Documentation ¶
Overview ¶
Package template provides the code templates that are emitted to generate the parser.
Each template handler is tested independently in isolation.
This package as given implements the following grammar:
Literal <- "abc" CharClass <- [ \n\r\t] Star <- CharClass * Group <- Star < Literal > Star Predicate <- & Group ... etc.
Index ¶
- func CaptureEndHandler(r *Result, pos int) (int, error)
- func CaptureStartHandler(r *Result, pos int) (int, error)
- func CharClassAlnumHandler(r *Result, pos int) (int, error)
- func CharClassHandler(r *Result, pos int) (int, error)
- func ChoiceHandler(r *Result, pos int) (int, error)
- func DotHandler(r *Result, pos int) (int, error)
- func GroupHandler(r *Result, pos int) (int, error)
- func LiteralHandler(r *Result, pos int) (int, error)
- func PlusHandler(r *Result, pos int) (int, error)
- func PredicateHandler(r *Result, pos int) (int, error)
- func QuestionHandler(r *Result, pos int) (int, error)
- func RuleHandler(r *Result, pos int) (int, error)
- func StarHandler(r *Result, pos int) (int, error)
- type Node
- type NodeStack
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LiteralHandler ¶
LiteralHandler is a template code for literal handlers in the generated parser.
Types ¶
Click to show internal directories.
Click to hide internal directories.