Sha256: 16c61b3a09f752801c6ca22cb67b9c2229866804d98093bfd6fa9da6a295ddf4
Contents?: true
Size: 339 Bytes
Versions: 2
Compression:
Stored size: 339 Bytes
Contents
module Qlang module Lexer class WrapLexer < Base rule(/\w\(\w( ?, ?\w)*\) ?= ?[^\r\n]+/) { :FUNC } rule(/\(/) { :LPRN } rule(/\)/) { :RPRN } rule(/\{/) { :LBRC } rule(/\}/) { :RBRC } rule(/[ \t\f]/) rule(/(\r|\n)+/) { :NLIN } rule(/[^\(\)\{\}(\n\n)]+/) { :CONT } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
qlang-0.0.14 | lib/qlang/lexer/wrap_lexer.rb |
qlang-0.0.1 | lib/qlang/lexer/wrap_lexer.rb |