Skip to content

Commit

Permalink
editing empty arrayList / expressionList xml tags to have no newline,…
Browse files Browse the repository at this point in the history
… which was easier than getting the xml go package to play nicely
  • Loading branch information
ibeckermayer committed Feb 9, 2021
1 parent dd2e151 commit 2c78673
Show file tree
Hide file tree
Showing 7 changed files with 67 additions and 134 deletions.
6 changes: 2 additions & 4 deletions Compiler/test/ArrayTest/Main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
<keyword> void </keyword>
<identifier> main </identifier>
<symbol> ( </symbol>
<parameterList>
</parameterList>
<parameterList></parameterList>
<symbol> ) </symbol>
<subroutineBody>
<symbol> { </symbol>
Expand Down Expand Up @@ -269,8 +268,7 @@
<symbol> . </symbol>
<identifier> println </identifier>
<symbol> ( </symbol>
<expressionList>
</expressionList>
<expressionList></expressionList>
<symbol> ) </symbol>
<symbol> ; </symbol>
</doStatement>
Expand Down
12 changes: 4 additions & 8 deletions Compiler/test/ExpressionLessSquare/Main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
<keyword> void </keyword>
<identifier> main </identifier>
<symbol> ( </symbol>
<parameterList>
</parameterList>
<parameterList></parameterList>
<symbol> ) </symbol>
<subroutineBody>
<symbol> { </symbol>
Expand Down Expand Up @@ -42,8 +41,7 @@
<symbol> . </symbol>
<identifier> run </identifier>
<symbol> ( </symbol>
<expressionList>
</expressionList>
<expressionList></expressionList>
<symbol> ) </symbol>
<symbol> ; </symbol>
</doStatement>
Expand All @@ -53,8 +51,7 @@
<symbol> . </symbol>
<identifier> dispose </identifier>
<symbol> ( </symbol>
<expressionList>
</expressionList>
<expressionList></expressionList>
<symbol> ) </symbol>
<symbol> ; </symbol>
</doStatement>
Expand All @@ -71,8 +68,7 @@
<keyword> void </keyword>
<identifier> test </identifier>
<symbol> ( </symbol>
<parameterList>
</parameterList>
<parameterList></parameterList>
<symbol> ) </symbol>
<subroutineBody>
<symbol> { </symbol>
Expand Down
42 changes: 14 additions & 28 deletions Compiler/test/ExpressionLessSquare/Square.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@
<keyword> do </keyword>
<identifier> draw </identifier>
<symbol> ( </symbol>
<expressionList>
</expressionList>
<expressionList></expressionList>
<symbol> ) </symbol>
<symbol> ; </symbol>
</doStatement>
Expand All @@ -95,8 +94,7 @@
<keyword> void </keyword>
<identifier> dispose </identifier>
<symbol> ( </symbol>
<parameterList>
</parameterList>
<parameterList></parameterList>
<symbol> ) </symbol>
<subroutineBody>
<symbol> { </symbol>
Expand Down Expand Up @@ -130,8 +128,7 @@
<keyword> void </keyword>
<identifier> draw </identifier>
<symbol> ( </symbol>
<parameterList>
</parameterList>
<parameterList></parameterList>
<symbol> ) </symbol>
<subroutineBody>
<symbol> { </symbol>
Expand Down Expand Up @@ -199,8 +196,7 @@
<keyword> void </keyword>
<identifier> erase </identifier>
<symbol> ( </symbol>
<parameterList>
</parameterList>
<parameterList></parameterList>
<symbol> ) </symbol>
<subroutineBody>
<symbol> { </symbol>
Expand Down Expand Up @@ -268,8 +264,7 @@
<keyword> void </keyword>
<identifier> incSize </identifier>
<symbol> ( </symbol>
<parameterList>
</parameterList>
<parameterList></parameterList>
<symbol> ) </symbol>
<subroutineBody>
<symbol> { </symbol>
Expand All @@ -289,8 +284,7 @@
<keyword> do </keyword>
<identifier> erase </identifier>
<symbol> ( </symbol>
<expressionList>
</expressionList>
<expressionList></expressionList>
<symbol> ) </symbol>
<symbol> ; </symbol>
</doStatement>
Expand All @@ -309,8 +303,7 @@
<keyword> do </keyword>
<identifier> draw </identifier>
<symbol> ( </symbol>
<expressionList>
</expressionList>
<expressionList></expressionList>
<symbol> ) </symbol>
<symbol> ; </symbol>
</doStatement>
Expand All @@ -330,8 +323,7 @@
<keyword> void </keyword>
<identifier> decSize </identifier>
<symbol> ( </symbol>
<parameterList>
</parameterList>
<parameterList></parameterList>
<symbol> ) </symbol>
<subroutineBody>
<symbol> { </symbol>
Expand All @@ -351,8 +343,7 @@
<keyword> do </keyword>
<identifier> erase </identifier>
<symbol> ( </symbol>
<expressionList>
</expressionList>
<expressionList></expressionList>
<symbol> ) </symbol>
<symbol> ; </symbol>
</doStatement>
Expand All @@ -371,8 +362,7 @@
<keyword> do </keyword>
<identifier> draw </identifier>
<symbol> ( </symbol>
<expressionList>
</expressionList>
<expressionList></expressionList>
<symbol> ) </symbol>
<symbol> ; </symbol>
</doStatement>
Expand All @@ -392,8 +382,7 @@
<keyword> void </keyword>
<identifier> moveUp </identifier>
<symbol> ( </symbol>
<parameterList>
</parameterList>
<parameterList></parameterList>
<symbol> ) </symbol>
<subroutineBody>
<symbol> { </symbol>
Expand Down Expand Up @@ -536,8 +525,7 @@
<keyword> void </keyword>
<identifier> moveDown </identifier>
<symbol> ( </symbol>
<parameterList>
</parameterList>
<parameterList></parameterList>
<symbol> ) </symbol>
<subroutineBody>
<symbol> { </symbol>
Expand Down Expand Up @@ -680,8 +668,7 @@
<keyword> void </keyword>
<identifier> moveLeft </identifier>
<symbol> ( </symbol>
<parameterList>
</parameterList>
<parameterList></parameterList>
<symbol> ) </symbol>
<subroutineBody>
<symbol> { </symbol>
Expand Down Expand Up @@ -824,8 +811,7 @@
<keyword> void </keyword>
<identifier> moveRight </identifier>
<symbol> ( </symbol>
<parameterList>
</parameterList>
<parameterList></parameterList>
<symbol> ) </symbol>
<subroutineBody>
<symbol> { </symbol>
Expand Down
39 changes: 13 additions & 26 deletions Compiler/test/ExpressionLessSquare/SquareGame.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
<identifier> SquareGame </identifier>
<identifier> new </identifier>
<symbol> ( </symbol>
<parameterList>
</parameterList>
<parameterList></parameterList>
<symbol> ) </symbol>
<subroutineBody>
<symbol> { </symbol>
Expand Down Expand Up @@ -65,8 +64,7 @@
<keyword> void </keyword>
<identifier> dispose </identifier>
<symbol> ( </symbol>
<parameterList>
</parameterList>
<parameterList></parameterList>
<symbol> ) </symbol>
<subroutineBody>
<symbol> { </symbol>
Expand All @@ -77,8 +75,7 @@
<symbol> . </symbol>
<identifier> dispose </identifier>
<symbol> ( </symbol>
<expressionList>
</expressionList>
<expressionList></expressionList>
<symbol> ) </symbol>
<symbol> ; </symbol>
</doStatement>
Expand Down Expand Up @@ -111,8 +108,7 @@
<keyword> void </keyword>
<identifier> moveSquare </identifier>
<symbol> ( </symbol>
<parameterList>
</parameterList>
<parameterList></parameterList>
<symbol> ) </symbol>
<subroutineBody>
<symbol> { </symbol>
Expand All @@ -134,8 +130,7 @@
<symbol> . </symbol>
<identifier> moveUp </identifier>
<symbol> ( </symbol>
<expressionList>
</expressionList>
<expressionList></expressionList>
<symbol> ) </symbol>
<symbol> ; </symbol>
</doStatement>
Expand All @@ -159,8 +154,7 @@
<symbol> . </symbol>
<identifier> moveDown </identifier>
<symbol> ( </symbol>
<expressionList>
</expressionList>
<expressionList></expressionList>
<symbol> ) </symbol>
<symbol> ; </symbol>
</doStatement>
Expand All @@ -184,8 +178,7 @@
<symbol> . </symbol>
<identifier> moveLeft </identifier>
<symbol> ( </symbol>
<expressionList>
</expressionList>
<expressionList></expressionList>
<symbol> ) </symbol>
<symbol> ; </symbol>
</doStatement>
Expand All @@ -209,8 +202,7 @@
<symbol> . </symbol>
<identifier> moveRight </identifier>
<symbol> ( </symbol>
<expressionList>
</expressionList>
<expressionList></expressionList>
<symbol> ) </symbol>
<symbol> ; </symbol>
</doStatement>
Expand Down Expand Up @@ -246,8 +238,7 @@
<keyword> void </keyword>
<identifier> run </identifier>
<symbol> ( </symbol>
<parameterList>
</parameterList>
<parameterList></parameterList>
<symbol> ) </symbol>
<subroutineBody>
<symbol> { </symbol>
Expand Down Expand Up @@ -312,8 +303,7 @@
<keyword> do </keyword>
<identifier> moveSquare </identifier>
<symbol> ( </symbol>
<expressionList>
</expressionList>
<expressionList></expressionList>
<symbol> ) </symbol>
<symbol> ; </symbol>
</doStatement>
Expand Down Expand Up @@ -362,8 +352,7 @@
<symbol> . </symbol>
<identifier> decSize </identifier>
<symbol> ( </symbol>
<expressionList>
</expressionList>
<expressionList></expressionList>
<symbol> ) </symbol>
<symbol> ; </symbol>
</doStatement>
Expand All @@ -387,8 +376,7 @@
<symbol> . </symbol>
<identifier> incSize </identifier>
<symbol> ( </symbol>
<expressionList>
</expressionList>
<expressionList></expressionList>
<symbol> ) </symbol>
<symbol> ; </symbol>
</doStatement>
Expand Down Expand Up @@ -521,8 +509,7 @@
<keyword> do </keyword>
<identifier> moveSquare </identifier>
<symbol> ( </symbol>
<expressionList>
</expressionList>
<expressionList></expressionList>
<symbol> ) </symbol>
<symbol> ; </symbol>
</doStatement>
Expand Down
15 changes: 5 additions & 10 deletions Compiler/test/Square/Main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
<keyword> void </keyword>
<identifier> main </identifier>
<symbol> ( </symbol>
<parameterList>
</parameterList>
<parameterList></parameterList>
<symbol> ) </symbol>
<subroutineBody>
<symbol> { </symbol>
Expand All @@ -35,8 +34,7 @@
<symbol> . </symbol>
<identifier> new </identifier>
<symbol> ( </symbol>
<expressionList>
</expressionList>
<expressionList></expressionList>
<symbol> ) </symbol>
</term>
</expression>
Expand All @@ -48,8 +46,7 @@
<symbol> . </symbol>
<identifier> run </identifier>
<symbol> ( </symbol>
<expressionList>
</expressionList>
<expressionList></expressionList>
<symbol> ) </symbol>
<symbol> ; </symbol>
</doStatement>
Expand All @@ -59,8 +56,7 @@
<symbol> . </symbol>
<identifier> dispose </identifier>
<symbol> ( </symbol>
<expressionList>
</expressionList>
<expressionList></expressionList>
<symbol> ) </symbol>
<symbol> ; </symbol>
</doStatement>
Expand All @@ -77,8 +73,7 @@
<keyword> void </keyword>
<identifier> test </identifier>
<symbol> ( </symbol>
<parameterList>
</parameterList>
<parameterList></parameterList>
<symbol> ) </symbol>
<subroutineBody>
<symbol> { </symbol>
Expand Down
Loading

0 comments on commit 2c78673

Please sign in to comment.