Sha256: 495978bbe8a1f9bf3c62891729a9cca76845bbbc273cadf1516082c12b9adec2

Contents?: true

Size: 378 Bytes

Versions: 1

Compression:

Stored size: 378 Bytes

Contents

module Qlang
  module Lexer
    class WrapLexer < Base
      rule(/\w\(\w( ?, ?\w)*\) ?= ?[^\r\n]+/) { :FUNC }
      rule(/S *\(.+\)\[.+\]/) { :ITGL }
      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

1 entries across 1 versions & 1 rubygems

Version Path
qlang-0.0.141 lib/qlang/lexer/wrap_lexer.rb