pegged.dynamic.grammar

Dynamic grammars: - no CT parsing (this one will stay) - no memoization (could be added) - slightly less handy parameterized rules (could be better) - no semantic actions (drat, this one is the worse) - no calling from other grammars?

Advantages: - fully runtime configurable: change rules, add rules, delete rules.

Members

Functions

distribute
Dynamic distribute(Dynamic[] args)
Undocumented in source. Be warned that the author may not have intended to support it.
grammar
DynamicGrammar grammar(string definition, Dynamic[string] context)
Undocumented in source. Be warned that the author may not have intended to support it.
makeRule
Dynamic makeRule(string def, Dynamic[string] context)
Undocumented in source. Be warned that the author may not have intended to support it.
makeRule
Dynamic makeRule(ParseTree def, Dynamic[string] context)
Undocumented in source. Be warned that the author may not have intended to support it.
parameterizedRule
ParameterizedRule parameterizedRule(size_t n, Dynamic delegate(Dynamic[] d) code)
Undocumented in source. Be warned that the author may not have intended to support it.
spaceArrow
ParseTree spaceArrow(ParseTree input)
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

DynamicGrammar
struct DynamicGrammar
Undocumented in source.
ParameterizedRule
struct ParameterizedRule
Undocumented in source.

Meta