Sha256: df5e6e79d2b67326b22a3ba15eba6abb1a90f1c228023bea8492980efa067b87
Contents?: true
Size: 780 Bytes
Versions: 2
Compression:
Stored size: 780 Bytes
Contents
module Qlang module Lexer class MainLexer < Base rule(/(#{FUNCCV})#{ANYSP}#{EQL}#{ANYSP}(#{FORMULA})/) { :def_func } rule(/#{ITGRLSYM}#{ANYSP}#{LPRN}(#{ANYSTR})#{RPRN}#{LBRCT}(#{ANYSTR})#{RBRCT}/) { :integral } rule(/d\/d(#{VAR}) (#{FORMULA})/) { :differential } rule(/#{LPRN}(#{NUMS_BY_SP})#{RPRN}/) { :vector } rule(/#{LPRN}(#{NUMS_BY_SP_BY_SCLN_OR_NELN})#{RPRN}t/m) { :tmatrix } rule(/#{LPRN}(#{NUMS_BY_SP_BY_SCLN_OR_NELN})#{RPRN}/m) { :matrix } rule(/#{FUNCCN}/) { :FUNCCN } rule(/#{LPRN}/) { :LPRN } rule(/#{RPRN}/) { :RPRN } rule(/#{LBRCS}/) { :LBRCS } rule(/#{RBRCS}/) { :RBRCS } rule(/[ \t\f]/) rule(/(\r|\n)+/) { :NULL } rule(/[^\(\)\{\}(\n\n)]+/) { :CONT } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
qlang-0.0.27182110 | lib/qlang/lexer/main_lexer.rb |
qlang-0.0.27182100 | lib/qlang/lexer/main_lexer.rb |