class ABNF::Parser::Compiler::RuleBuilder
Attributes
compiler[R]
Public Class Methods
new(compiler)
click to toggle source
# File lib/abnf/parser/compiler/rule_builder.rb, line 7 def initialize compiler @compiler = compiler end
Public Instance Methods
call(token)
click to toggle source
# File lib/abnf/parser/compiler/rule_builder.rb, line 11 def call token send token.underscore_type, token end
start_rule(token)
click to toggle source
# File lib/abnf/parser/compiler/rule_builder.rb, line 15 def start_rule token fail end