From 620b6e35bdea91342ace2429b5a37800eda79329 Mon Sep 17 00:00:00 2001 From: Humenius Date: Wed, 3 Jun 2020 10:07:51 +0200 Subject: [PATCH] Clean up and fix Antlr Parser module --- .idea/libraries/antlr_3_5_2_complete.xml | 9 - .idea/libraries/jflex_1_6_1.xml | 9 - .idea/libraries/lib.xml | 4 +- .idea/libraries/lib1.xml | 10 - .idea/libraries/lib2.xml | 10 - .idea/runConfigurations/Run_Antlr_builder.xml | 3 + CC-Praxis-Antlr Parser fuer X-Leer/X.tokens | 11 +- .../src/de/dhbw/compiler/antlrxparser/X.g | 2 + .../de/dhbw/compiler/antlrxparser/XLexer.java | 268 +++---- .../dhbw/compiler/antlrxparser/XParser.java | 24 +- lib/antlr-3.5.2-complete.jar | Bin 0 -> 2456317 bytes .../de/dhbw/compiler/xparser/JFlexXScanner.lex | 148 ++++ .../compiler/jflexasscanner/FracToken.class | Bin 618 -> 0 bytes .../jflexasscanner/JFlexASScanner.class | Bin 12170 -> 0 bytes .../compiler/jflexasscanner/JFlexASScanner.flex | 75 -- .../jflexasscanner/JFlexASScanner.java~ | 695 ------------------ .../jflexasscanner/JFlexASScannerMain.class | Bin 853 -> 0 bytes .../dhbw/compiler/jflexasscanner/NumToken.class | Bin 592 -> 0 bytes .../compiler/jflexasscanner/StringToken.class | Bin 654 -> 0 bytes .../jflexasscanner/TestASScanner1.class | Bin 3928 -> 0 bytes .../jflexasscanner/TestASScanner2.class | Bin 2870 -> 0 bytes .../jflexasscanner/TestASScanner3.class | Bin 2123 -> 0 bytes .../jflexasscanner/TestASScanner4.class | Bin 1671 -> 0 bytes .../jflexasscanner/TestASScanner5.class | Bin 1654 -> 0 bytes .../dhbw/compiler/jflexasscanner/TestsAll.class | Bin 860 -> 0 bytes .../de/dhbw/compiler/jflexasscanner/Token.class | Bin 1996 -> 0 bytes .../jflexasscanner/TokenStreamTest.class | Bin 3080 -> 0 bytes .../ÜB-Praxis-JFlex Scanner für AS-Leer.iml | 2 +- .../namenscanner/NamenScanner$NamenState.class | Bin 1739 -> 0 bytes .../compiler/namenscanner/NamenScanner.class | Bin 1662 -> 0 bytes .../namenscanner/NamenScannerMain.class | Bin 1225 -> 0 bytes .../namenscanner/TestNamenScanner1.class | Bin 5696 -> 0 bytes .../dhbw/compiler/namenscanner/TestsAll.class | Bin 641 -> 0 bytes .../de/dhbw/compiler/namenscanner/Token.class | Bin 1302 -> 0 bytes .../compiler/namenscanner/TokenStreamTest.class | Bin 1791 -> 0 bytes .../ÜB-Praxis-Scanner für Namen-Leer.iml | 2 +- 36 files changed, 297 insertions(+), 975 deletions(-) delete mode 100644 .idea/libraries/antlr_3_5_2_complete.xml delete mode 100644 .idea/libraries/jflex_1_6_1.xml delete mode 100644 .idea/libraries/lib1.xml delete mode 100644 .idea/libraries/lib2.xml create mode 100644 lib/antlr-3.5.2-complete.jar create mode 100644 out/production/ÜB-Praxis-Abstiegsparser für X-Leer/de/dhbw/compiler/xparser/JFlexXScanner.lex delete mode 100644 ÜB-Praxis-JFlex Scanner für AS-Leer/bin/de/dhbw/compiler/jflexasscanner/FracToken.class delete mode 100644 ÜB-Praxis-JFlex Scanner für AS-Leer/bin/de/dhbw/compiler/jflexasscanner/JFlexASScanner.class delete mode 100644 ÜB-Praxis-JFlex Scanner für AS-Leer/bin/de/dhbw/compiler/jflexasscanner/JFlexASScanner.flex delete mode 100644 ÜB-Praxis-JFlex Scanner für AS-Leer/bin/de/dhbw/compiler/jflexasscanner/JFlexASScanner.java~ delete mode 100644 ÜB-Praxis-JFlex Scanner für AS-Leer/bin/de/dhbw/compiler/jflexasscanner/JFlexASScannerMain.class delete mode 100644 ÜB-Praxis-JFlex Scanner für AS-Leer/bin/de/dhbw/compiler/jflexasscanner/NumToken.class delete mode 100644 ÜB-Praxis-JFlex Scanner für AS-Leer/bin/de/dhbw/compiler/jflexasscanner/StringToken.class delete mode 100644 ÜB-Praxis-JFlex Scanner für AS-Leer/bin/de/dhbw/compiler/jflexasscanner/TestASScanner1.class delete mode 100644 ÜB-Praxis-JFlex Scanner für AS-Leer/bin/de/dhbw/compiler/jflexasscanner/TestASScanner2.class delete mode 100644 ÜB-Praxis-JFlex Scanner für AS-Leer/bin/de/dhbw/compiler/jflexasscanner/TestASScanner3.class delete mode 100644 ÜB-Praxis-JFlex Scanner für AS-Leer/bin/de/dhbw/compiler/jflexasscanner/TestASScanner4.class delete mode 100644 ÜB-Praxis-JFlex Scanner für AS-Leer/bin/de/dhbw/compiler/jflexasscanner/TestASScanner5.class delete mode 100644 ÜB-Praxis-JFlex Scanner für AS-Leer/bin/de/dhbw/compiler/jflexasscanner/TestsAll.class delete mode 100644 ÜB-Praxis-JFlex Scanner für AS-Leer/bin/de/dhbw/compiler/jflexasscanner/Token.class delete mode 100644 ÜB-Praxis-JFlex Scanner für AS-Leer/bin/de/dhbw/compiler/jflexasscanner/TokenStreamTest.class delete mode 100644 ÜB-Praxis-Scanner für Namen-Leer/bin/de/dhbw/compiler/namenscanner/NamenScanner$NamenState.class delete mode 100644 ÜB-Praxis-Scanner für Namen-Leer/bin/de/dhbw/compiler/namenscanner/NamenScanner.class delete mode 100644 ÜB-Praxis-Scanner für Namen-Leer/bin/de/dhbw/compiler/namenscanner/NamenScannerMain.class delete mode 100644 ÜB-Praxis-Scanner für Namen-Leer/bin/de/dhbw/compiler/namenscanner/TestNamenScanner1.class delete mode 100644 ÜB-Praxis-Scanner für Namen-Leer/bin/de/dhbw/compiler/namenscanner/TestsAll.class delete mode 100644 ÜB-Praxis-Scanner für Namen-Leer/bin/de/dhbw/compiler/namenscanner/Token.class delete mode 100644 ÜB-Praxis-Scanner für Namen-Leer/bin/de/dhbw/compiler/namenscanner/TokenStreamTest.class diff --git a/.idea/libraries/antlr_3_5_2_complete.xml b/.idea/libraries/antlr_3_5_2_complete.xml deleted file mode 100644 index 3cd6146..0000000 --- a/.idea/libraries/antlr_3_5_2_complete.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/jflex_1_6_1.xml b/.idea/libraries/jflex_1_6_1.xml deleted file mode 100644 index 1aa5664..0000000 --- a/.idea/libraries/jflex_1_6_1.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/lib.xml b/.idea/libraries/lib.xml index f890f5c..fa8838a 100644 --- a/.idea/libraries/lib.xml +++ b/.idea/libraries/lib.xml @@ -1,10 +1,10 @@ - - + + \ No newline at end of file diff --git a/.idea/libraries/lib1.xml b/.idea/libraries/lib1.xml deleted file mode 100644 index ff35171..0000000 --- a/.idea/libraries/lib1.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/.idea/libraries/lib2.xml b/.idea/libraries/lib2.xml deleted file mode 100644 index 6a8d21c..0000000 --- a/.idea/libraries/lib2.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/Run_Antlr_builder.xml b/.idea/runConfigurations/Run_Antlr_builder.xml index 47bff95..b5f2a09 100644 --- a/.idea/runConfigurations/Run_Antlr_builder.xml +++ b/.idea/runConfigurations/Run_Antlr_builder.xml @@ -1,5 +1,8 @@ +