lib/qlang/lexer/main_lexer.rb in qlang-0.0.27182123 vs lib/qlang/lexer/main_lexer.rb in qlang-0.0.27182124
- old
+ new
@@ -1,5 +1,8 @@
+#!/bin/env ruby
+# encoding: utf-8
+
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 }
@@ -10,9 +13,10 @@
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(/∑#{LBRCT}(#{VAR})=(#{INT}),#{ANYSP}(#{INT})#{RBRCT} (#{FORMULA})/) { :sigma }
+ rule(/sigma#{LBRCT}(#{VAR})=(#{INT}),#{ANYSP}(#{INT})#{RBRCT} (#{FORMULA})/) { :sigma }
rule(/#{FUNCCN}/) { :FUNCCN }
rule(/#{LPRN}/) { :LPRN }
rule(/#{RPRN}/) { :RPRN }