Sha256: b448ae6b75a2c76fb3fffbb0b2c03851cba7ad9417ef209ff908f3f1d0307585
Contents?: true
Size: 468 Bytes
Versions: 6
Compression:
Stored size: 468 Bytes
Contents
class Code class Parser class NotKeyword < Parslet::Parser rule(:equal) { ::Code::Parser::Equal.new } rule(:not_keyword) { str("not") } rule(:operator) { not_keyword } rule(:space) { str(" ") } rule(:newline) { str("\n") } rule(:whitespace) { (space | newline).repeat(1) } rule(:not_rule) do (not_keyword >> whitespace >> not_rule).as(:not_keyword) | equal end root(:not_rule) end end end
Version data entries
6 entries across 6 versions & 2 rubygems