Sha256: 4480aba20e665c6f11550aa4045ab2d33a8e8a9281624250f214e291256f5fc1
Contents?: true
Size: 333 Bytes
Versions: 2
Compression:
Stored size: 333 Bytes
Contents
module Qlang module Lexer class ContLexer < Base rule(/:%\|.+\|%:/) { :R } rule(/('|")\w+('|")/) { :STR } rule(/[0-9]+/) { :NUM } rule(/\:/) { :CLN } rule(/\;/) { :SCLN } rule(/\,/) { :CMA } rule(/[ \t\f]/) rule(/\r\n/) { :NLIN } rule(/\w+/) { :OTHER } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
qlang-0.0.14 | lib/qlang/lexer/cont_lexer.rb |
qlang-0.0.1 | lib/qlang/lexer/cont_lexer.rb |