Sha256: 36862224a39873f0506fe415f0cd8e256150868f4b3f7680748ca733009cc682
Contents?: true
Size: 697 Bytes
Versions: 1
Compression:
Stored size: 697 Bytes
Contents
module Qlang module Lexer class WrapLexer < Base rule(/#{FUNCCV}#{ANYSP}=#{ANYSP}#{FORMULA}+/) { :def_func } rule(/#{FUNCCN}/) { :eval_func } rule(/S#{ANYSP}#{LPRN}#{ANYSTR}#{RPRN}\[#{ANYSTR}\]/) { :integral } rule(/d\/d#{VAR} #{FORMULA}/) { :differential } rule(/#{LPRN}#{NUMS_BY_SP}#{RPRN}/) { :vector } rule(/#{LPRN}#{NUMS_BY_SP_BY_SCLN}#{RPRN}t/) { :tmatrix } rule(/#{LPRN}#{NUMS_BY_SP_BY_SCLN}#{RPRN}/) { :matrix } 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.27182000 | lib/qlang/lexer/wrap_lexer.rb |