Sha256: 7654d986ac61d62305316897257d0ed16a94323eddb9ef59b708966ac49b72ed
Contents?: true
Size: 357 Bytes
Versions: 1
Compression:
Stored size: 357 Bytes
Contents
module Treetop class NotPredicate < Predicate def to_s "!(#{expression.to_s})" end protected def child_expression_success(index, input, result) return failure_at(index, [result]) end def child_expression_failure(index, input, result) return success_at(index, input, [result]) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
treetop-0.1.0 | lib/treetop/grammar/parsing_expressions/not_predicate.rb |