Sha256: 141643364998962601496477b56a457920ee136fa8c48d5e6d3f2dd768154527
Contents?: true
Size: 529 Bytes
Versions: 1
Compression:
Stored size: 529 Bytes
Contents
module Treetop class Protometagrammar class PrefixExpressionBuilder < ParsingExpressionBuilder def build choice(and_predicate, not_predicate) end def and_predicate exp('&') do def value(parsing_expression) parsing_expression.and_predicate end end end def not_predicate exp('!') do def value(parsing_expression) parsing_expression.not_predicate end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
treetop-0.1.0 | lib/treetop/protometagrammar/prefix_expression_builder.rb |