You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many thanks for this nice project. I have started my own fork with many changes
at http://code.google.com/p/42tiny-js/
Changelog:
Added boolean datatype (in string operators its shown as 'true'/'false' but in
math as '1'/'0'
Added '~' operator
Added bit-shift operators '<<' '>>'
Added assignment operators '<<=' '>>=' '|=' '&=' '^='
Addet comma operator like this 'var i=1,j,k=9;' or 'for(i=0,j=12; i<10; i++,
j++)' works
Added Conditional operator ( ? : )
Added automatic cast from doubles to integer e.G. by logic and binary operators
Added pre-increment/-decrement like '++i'/'--i' operator
Fixed post-increment/decrement now returns the previous value
Fixed throws an Error when invalid using of post/pre-increment/decrement (like
this 5++ works no more)
Fixed memoryleak (unref arrayClass at deconstructor of JS CTinyJS)
Fixed unary operator handling (like this '-~-5' works now)
Fixed operator prority order
-> ','
-> '=' '+=' '-=' '<<=' '>>=' '&=' '^=' '|='
-> '? :' -> '||' -> '&&' -> '|' -> '^' -> '&'
-> ['==' '===' '!=' '!==']
-> [ '<' '<=' '=>' '>']
-> ['<<' '>>'] -> [ '*' '/' '%']
-> ['!' '~' '-' '++' '--']
Added do-while-loop ( do .... while(..); )
Added break and continue statements for loops
ardi
Original issue reported on code.google.com by ArminDie...@gmail.com on 1 Sep 2010 at 5:49
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
ArminDie...@gmail.com
on 1 Sep 2010 at 5:49The text was updated successfully, but these errors were encountered: