Sha256: 759ad3a3a66d4c7c5277be7d1f08984add579ed5988e86f5ce77bdee3d806b43
Contents?: true
Size: 361 Bytes
Versions: 11
Compression:
Stored size: 361 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+/) { :SYM } rule(/.+/) { :OTHER } end end end
Version data entries
11 entries across 11 versions & 1 rubygems