Sha256: 217f808968f7809434f20cdd4ce90ebdab73f2ce7b9b93225acf9371d9bacf83

Contents?: true

Size: 217 Bytes

Versions: 10

Compression:

Stored size: 217 Bytes

Contents

#
# calc3.rex
# lexical scanner definition for rex
#

class Calculator3
macro
  BLANK         \s+
  DIGIT         \d+
rule
  {BLANK}
  {DIGIT}       { [:NUMBER, text.to_i] }
  .|\n          { [text, text] }
inner
end

Version data entries

10 entries across 10 versions & 4 rubygems

Version Path
rexical-1.0.7 sample/calc3.rex
aaronp-frex-1.0.0 sample/calc3.rex
aaronp-frex-1.0.1 sample/calc3.rex
tenderlove-frex-1.0.1.20090313144615 sample/calc3.rex
rexical-1.0.5 sample/calc3.rex
rexical-1.0.5.beta2 sample/calc3.rex
rexical-1.0.5.beta1 sample/calc3.rex
rex-1.0.2 sample/calc3.rex
rexical-1.0.4 sample/calc3.rex
rexical-1.0.3 sample/calc3.rex