Module: ABNF::Compiler::Controls::AST
Instance Method Summary collapse
Instance Method Details
#leaf(text = nil) ⇒ Object
7 8 9 10 |
# File 'lib/abnf/compiler/controls/ast.rb', line 7 def leaf text = nil text ||= 'some-string' Compiler::AST.leaf text end |
#repetition ⇒ Object
12 13 14 15 16 17 |
# File 'lib/abnf/compiler/controls/ast.rb', line 12 def repetition Compiler::AST.repetition( leaf('some-string'), leaf('other-string'), ) end |