ddparser ~master (2022-05-08T05:41:52.9614299)
Dub
Repo
Rule
ddparser
gram
Undocumented in source.
struct
Rule {
uint
index
;
Production
*
prod
;
int
op_priority
;
AssocKind
op_assoc
;
int
rule_priority
;
AssocKind
rule_assoc
;
Elem
*[]
elems
;
Elem
*
end
;
Code
speculative_code
;
Code
final_code
;
Vec
!(
Code
*)
pass_code
;
int
action_index
;
Rule
*
same_reduction
;
void
serialize
(Serializer s);
}
Members
Functions
serialize
void
serialize
(Serializer s)
Undocumented in source. Be warned that the author may not have intended to support it.
Variables
action_index
int
action_index
;
Undocumented in source.
elems
Elem
*[]
elems
;
Undocumented in source.
end
Elem
*
end
;
Undocumented in source.
final_code
Code
final_code
;
Undocumented in source.
index
uint
index
;
Undocumented in source.
op_assoc
AssocKind
op_assoc
;
Undocumented in source.
op_priority
int
op_priority
;
Undocumented in source.
pass_code
Vec
!(
Code
*)
pass_code
;
Undocumented in source.
prod
Production
*
prod
;
Undocumented in source.
rule_assoc
AssocKind
rule_assoc
;
Undocumented in source.
rule_priority
int
rule_priority
;
Undocumented in source.
same_reduction
Rule
*
same_reduction
;
Undocumented in source.
speculative_code
Code
speculative_code
;
Undocumented in source.
Meta
Source
See Implementation
ddparser
gram
aliases
DECLARE_NUM
D_Grammar
Item
VecAction
VecHint
VecScanStateTransition
enums
ActionKind
AssocKind
DeclarationKind
ElemKind
InternalKind
TermKind
functions
IS_BINARY_ASSOC
IS_BINARY_NARY_ASSOC
IS_EXPECT_LEFT_ASSOC
IS_EXPECT_RIGHT_ASSOC
IS_LEFT_ASSOC
IS_NARY_ASSOC
IS_RIGHT_ASSOC
IS_UNARY_ASSOC
IS_UNARY_BINARY_ASSOC
add_declaration
add_pass
add_pass_code
build_eq
build_grammar
conditional_EBNF
dup_elem
elemTermOrNtermEqual
escape_string_for_regex
find_pass
finish_productions
free_D_Grammar
initialize_productions
lookup_production
new_D_Grammar
new_code
new_declaration
new_elem_nterm
new_ident
new_internal_production
new_production
new_rule
new_string
new_token
new_utf8_char
plus_EBNF
print_elem
print_grammar
print_rdebug_grammar
print_rule
print_states
print_term
rep_EBNF
star_EBNF
manifest constants
ASSOC_BINARY
ASSOC_LEFT
ASSOC_NARY
ASSOC_RIGHT
ASSOC_UNARY
EOF_SENTINAL
NO_PROD
structs
Action
Code
Declaration
Elem
EqState
Goto
Grammar
Hint
Production
Rule
Scanner
State
Term
variables
action_types