Sha256: a8f22abee65508c12b6a70651ed84989e4217c60a62b17811496054ffb251954

Contents?: true

Size: 472 Bytes

Versions: 2

Compression:

Stored size: 472 Bytes

Contents

module Qlang
  module Lexer
    class WrapLexer < Base
      rule(/[fgh]\(\w( ?, ?\w)*\) ?= ?[^\r\n]+/) { :FUNC }
      rule(/[fgh]\( ?\d( *, *\d)* *\)/) { :EFUNC }
      rule(/S *\(.+\)\[.+\]/) { :ITGL }
      rule(/d\/d[a-zA-Z] .*/) { :DIFF }
      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.14142135 lib/qlang/lexer/wrap_lexer.rb
qlang-0.0.1414213 lib/qlang/lexer/wrap_lexer.rb