Change parser to do C style () for operators: 1+2*3 == 1+(2)*3
commit2bcea09efc93b4ac74d9b1acded9f352364aedb1
authorJonathan Wright <jonathan@quag.geek.nz>
Sun, 27 May 2007 02:51:40 +0000 (27 14:51 +1200)
committerJonathan Wright <jonathan@quag.geek.nz>
Sun, 27 May 2007 02:51:40 +0000 (27 14:51 +1200)
tree2c23ba481d9037e9281d5dda07433ed410e147bb
parente33aed5dad5e94baa27bfefadd1788906d0f41b8
Change parser to do C style () for operators: 1+2*3 == 1+(2)*3

Old way
 1 + 2  * 3 -> 1 +(2 *(3))
 1 +(2) * 3 -> 1 +(2) *(3)

New way
 1 + 2  * 3 -> 1 +(2 *(3))
 1 +(2) * 3 -> 1 +((2) *(3))

This means some changes may be required to existing code.

 Old Code            Rewrite As
 x *(y) sqrt         (x * y) sqrt
 a -(b) *(c) +(e)    (a - b) * c + e
62 files changed:
addons/AVCodec/samples/video.io
addons/AppleExtras/samples/roller.io
addons/Box/tests/performance/mandlebrot.io
addons/Box/tests/performance/runSpeedTests.io
addons/Flux/io/Flux/EditKnob.io
addons/Flux/io/Flux/View.io
addons/Flux/io/Flux/Views/BusyView.io
addons/Flux/io/Flux/Views/Button.io
addons/Flux/io/Flux/Views/CheckBox.io
addons/Flux/io/Flux/Views/ColumnView.io
addons/Flux/io/Flux/Views/HScroller.io
addons/Flux/io/Flux/Views/HStackView.io
addons/Flux/io/Flux/Views/ImageView.io
addons/Flux/io/Flux/Views/ImageWell.io
addons/Flux/io/Flux/Views/Menu.io
addons/Flux/io/Flux/Views/MenuItem.io
addons/Flux/io/Flux/Views/Panel.io
addons/Flux/io/Flux/Views/ScrollBar.io
addons/Flux/io/Flux/Views/SheetView.io
addons/Flux/io/Flux/Views/Text.io
addons/Flux/io/Flux/Views/TextField.io
addons/Flux/io/Flux/Views/VideoView.io
addons/Flux/io/Flux/Views/Window.io
addons/Flux/io/Flux/new/HelloWorld.io
addons/Flux/io/Flux/new/TreeView.io
addons/Flux/io/Flux/new/old/ObjectView.io
addons/Flux/samples/China/china.io
addons/Flux/samples/Diagram/DBox.io
addons/Flux/samples/Mix/Mix.io
addons/Flux/samples/Mix/Thing.io
addons/Flux/samples/Slideshow/main.io
addons/Flux/samples/SongJam/TrackMeter.io
addons/Flux/samples/SongJam/WaveView.io
addons/Font/samples/slides.io
addons/Font/samples/test.io
addons/Font/samples/test2.io
addons/GLFW/samples/lesson08.io
addons/Image/samples/test.io
addons/Loki/io/Assembler.io
addons/Loki/io/CodeGeneration.io
addons/Loki/samples/shootout/fasta.io
addons/Loki/samples/shootout/loki_nsieve-bits.io
addons/OpenGL/docs/tutorial/lesson13/main.io
addons/OpenGL/docs/tutorial/lesson2/main.io
addons/OpenGL/docs/tutorial/lesson3/main.io
addons/OpenGL/docs/tutorial/lesson4/main.io
addons/OpenGL/docs/tutorial/lesson5/main.io
addons/OpenGL/docs/tutorial/lesson6/main.io
addons/OpenGL/docs/tutorial/lesson7/main.io
addons/OpenGL/docs/tutorial/lesson8/main.io
addons/OpenGL/docs/tutorial/lesson9/main.io
addons/OpenGL/samples/game/Tank.io
addons/OpenGL/samples/game/server.io
addons/Rational/io/Rational.io
addons/Socket/samples/TerminalServer.io
addons/Socket/samples/WebServer/test.io
addons/SystemCall/io/SystemCall.io
libs/iovm/io/A3_List_schwartzian.io
libs/iovm/io/Number.io
libs/iovm/source/IoMessage_opShuffle.c
libs/iovm/tests/NumberTest.io
libs/iovm/tests/VectorTest.io