package
0.0.0-20181122101858-d773202d5b1f
Repository: https://github.com/cznic/parser.git
Documentation: pkg.go.dev

# Functions

Parse parses src as a single yacc source file fname and returns the corresponding Specification.

# Constants

ActionValueDlrDlr is used for $$.
ActionValueDlrNum is used for $num.
ActionValueDlrTagDlr is used for $<tag>$.
ActionValueDlrTagNum is used for $<tag>num.
ActionValueGo is used for a Go code fragment.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Action represents data reduced by production: Action: '{' '}'.
ActionValue is an item of Action.Value.
Definition represents data reduced by productions: Definition: START IDENTIFIER | UNION // Case 1 | LCURL RCURL // Case 2 | ReservedWord Tag NameList // Case 3 | ReservedWord Tag // Case 4 | ERROR_VERBOSE // Case 5.
DefinitionList represents data reduced by productions: DefinitionList: /* empty */ | DefinitionList Definition // Case 1.
LiteralStringOpt represents data reduced by productions: LiteralStringOpt: /* empty */ | STRING_LITERAL // Case 1.
Name represents data reduced by productions: Name: IDENTIFIER LiteralStringOpt | IDENTIFIER NUMBER LiteralStringOpt // Case 1.
NameList represents data reduced by productions: NameList: Name | NameList Name // Case 1 | NameList ',' Name // Case 2.
Precedence represents data reduced by productions: Precedence: /* empty */ | PREC IDENTIFIER // Case 1 | PREC IDENTIFIER Action // Case 2 | Precedence ';' // Case 3.
ReservedWord represents data reduced by productions: ReservedWord: TOKEN | LEFT // Case 1 | RIGHT // Case 2 | NONASSOC // Case 3 | TYPE // Case 4 | PRECEDENCE // Case 5.
Rule represents data reduced by productions: Rule: C_IDENTIFIER RuleItemList Precedence | '|' RuleItemList Precedence // Case 1.
RuleItemList represents data reduced by productions: RuleItemList: /* empty */ | RuleItemList IDENTIFIER // Case 1 | RuleItemList Action // Case 2 | RuleItemList STRING_LITERAL // Case 3.
RuleList represents data reduced by productions: RuleList: C_IDENTIFIER RuleItemList Precedence | RuleList Rule // Case 1.
Specification represents data reduced by production: Specification: DefinitionList "%%" RuleList Tail.
Tag represents data reduced by productions: Tag: /* empty */ | '<' IDENTIFIER '>' // Case 1.
Tail represents data reduced by productions: Tail: "%%" | /* empty */ // Case 1.
Token captures a lexem with position, value and comments, if any.

# Interfaces

Node represents an AST node.