Sha256: ff03b51d33ef327f7d137710d3d23a4e41376c188d20110b1ad9226776fd261a
Contents?: true
Size: 486 Bytes
Versions: 21
Compression:
Stored size: 486 Bytes
Contents
class Code class Parser class Negation < Language def exclamation_point str("!") end def tilde str("~") end def plus str("+") end def operator exclamation_point | tilde | plus end def negation ::Code::Parser::Negation end def root (operator.aka(:operator) << negation.aka(:right)).aka(:negation) | ::Code::Parser::Function end end end end
Version data entries
21 entries across 21 versions & 3 rubygems