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

Version Path
qlang-0.0.27182000 lib/qlang/lexer/cont_lexer.rb
qlang-0.0.27180000 lib/qlang/lexer/cont_lexer.rb
qlang-0.0.27100000 lib/qlang/lexer/cont_lexer.rb
qlang-0.0.27000000 lib/qlang/lexer/cont_lexer.rb
qlang-0.0.27 lib/qlang/lexer/cont_lexer.rb
qlang-0.0.14142135 lib/qlang/lexer/cont_lexer.rb
qlang-0.0.1414213 lib/qlang/lexer/cont_lexer.rb
qlang-0.0.141421 lib/qlang/lexer/cont_lexer.rb
qlang-0.0.14142 lib/qlang/lexer/cont_lexer.rb
qlang-0.0.1414 lib/qlang/lexer/cont_lexer.rb
qlang-0.0.141 lib/qlang/lexer/cont_lexer.rb