Add new example

This commit is contained in:
Glenn Y. Rolland 2017-09-12 17:33:07 +02:00
parent 9fac1514c9
commit 6fbe4f5a9a
2 changed files with 7 additions and 2 deletions

View file

@ -8,7 +8,11 @@ module Mm2ep
token :L_PAR, /\(/ token :L_PAR, /\(/
token :R_PAR, /\)/ token :R_PAR, /\)/
token :NUMBER, /[0-9]+(\.[0-9]+)?/ token :NUMBER, /[0-9]+(\.[0-9]+)?/
token :STRING, /"[^"]*"/ token :STRING, /"([^"]*)"/ do |s|
s.value.gsub!(/"(.*)"/,'\1')
s
end
token :EQ_OP, /\=/ token :EQ_OP, /\=/
token :T_BOOL, /true/i token :T_BOOL, /true/i
token :F_BOOL, /false/i token :F_BOOL, /false/i

View file

@ -1 +1,2 @@
truc bidule
( a_girl_has_no_name = true ) AND ( character = "Arya Stark" )