lib/minjs/ecma262/punc.rb in minjs-0.2.2 vs lib/minjs/ecma262/punc.rb in minjs-0.3.0

- old
+ new

@@ -29,16 +29,20 @@ def to_s val.to_s end + def to_js + val.to_s + end + def ==(obj) self.class == obj.class and self.val == obj.val end end PUNC_CONDIF = Punctuator.get('?') - PUNC_CONDELSE = Punctuator.get(':') + #PUNC_CONDELSE = Punctuator.get(':') PUNC_LET = Punctuator.get('=') PUNC_DIVLET = Punctuator.get('/=') PUNC_MULLET = Punctuator.get('*=') PUNC_MODLET = Punctuator.get('%=') PUNC_ADDLET = Punctuator.get('+=') @@ -79,10 +83,10 @@ PUNC_LSQBRAC = Punctuator.get('[') PUNC_RSQBRAC = Punctuator.get(']') PUNC_LCURLYBRAC = Punctuator.get('{') PUNC_RCURLYBRAC = Punctuator.get('}') PUNC_COMMA = Punctuator.get(',') - PUNC_COLON = Punctuator.get(':') + PUNC_COLON = Punctuator.get(':') #= same as PUNC_CONDELSE PUNC_SEMICOLON = Punctuator.get(';') PUNC_PERIOD = Punctuator.get('.') end end