Clean up and fix Antlr Parser module
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// $ANTLR 3.5.2 /Users/kreis/git/gitea.humenius.me/dhbw-compilerbau/CC-Praxis-Antlr Parser fuer X-Leer/src/de/dhbw/compiler/antlrxparser/X.g 2020-05-27 16:02:17
|
||||
// $ANTLR 3.5.2 /Users/kreis/git/gitea.humenius.me/dhbw-compilerbau/CC-Praxis-Antlr Parser fuer X-Leer/src/de/dhbw/compiler/antlrxparser/X.g 2020-06-03 10:07:22
|
||||
package de.dhbw.compiler.antlrxparser;
|
||||
|
||||
import org.antlr.runtime.*;
|
||||
@@ -14,13 +14,15 @@ import org.antlr.runtime.tree.*;
|
||||
@SuppressWarnings("all")
|
||||
public class XParser extends Parser {
|
||||
public static final String[] tokenNames = new String[] {
|
||||
"<invalid>", "<EOR>", "<DOWN>", "<UP>", "ID", "INTCONST", "WS", "'TODO'"
|
||||
"<invalid>", "<EOR>", "<DOWN>", "<UP>", "FLOATCONST", "ID", "INTCONST",
|
||||
"WS", "'TODO'"
|
||||
};
|
||||
public static final int EOF=-1;
|
||||
public static final int T__7=7;
|
||||
public static final int ID=4;
|
||||
public static final int INTCONST=5;
|
||||
public static final int WS=6;
|
||||
public static final int T__8=8;
|
||||
public static final int FLOATCONST=4;
|
||||
public static final int ID=5;
|
||||
public static final int INTCONST=6;
|
||||
public static final int WS=7;
|
||||
|
||||
// delegates
|
||||
public Parser[] getDelegates() {
|
||||
@@ -57,7 +59,7 @@ public class XParser extends Parser {
|
||||
|
||||
|
||||
// $ANTLR start "program"
|
||||
// /Users/kreis/git/gitea.humenius.me/dhbw-compilerbau/CC-Praxis-Antlr Parser fuer X-Leer/src/de/dhbw/compiler/antlrxparser/X.g:42:1: program : 'TODO' ;
|
||||
// /Users/kreis/git/gitea.humenius.me/dhbw-compilerbau/CC-Praxis-Antlr Parser fuer X-Leer/src/de/dhbw/compiler/antlrxparser/X.g:44:1: program : 'TODO' ;
|
||||
public final XParser.program_return program() throws RecognitionException {
|
||||
XParser.program_return retval = new XParser.program_return();
|
||||
retval.start = input.LT(1);
|
||||
@@ -69,13 +71,13 @@ public class XParser extends Parser {
|
||||
CommonTree string_literal1_tree=null;
|
||||
|
||||
try {
|
||||
// /Users/kreis/git/gitea.humenius.me/dhbw-compilerbau/CC-Praxis-Antlr Parser fuer X-Leer/src/de/dhbw/compiler/antlrxparser/X.g:42:8: ( 'TODO' )
|
||||
// /Users/kreis/git/gitea.humenius.me/dhbw-compilerbau/CC-Praxis-Antlr Parser fuer X-Leer/src/de/dhbw/compiler/antlrxparser/X.g:42:13: 'TODO'
|
||||
// /Users/kreis/git/gitea.humenius.me/dhbw-compilerbau/CC-Praxis-Antlr Parser fuer X-Leer/src/de/dhbw/compiler/antlrxparser/X.g:44:8: ( 'TODO' )
|
||||
// /Users/kreis/git/gitea.humenius.me/dhbw-compilerbau/CC-Praxis-Antlr Parser fuer X-Leer/src/de/dhbw/compiler/antlrxparser/X.g:44:13: 'TODO'
|
||||
{
|
||||
root_0 = (CommonTree)adaptor.nil();
|
||||
|
||||
|
||||
string_literal1=(Token)match(input,7,FOLLOW_7_in_program256); if (state.failed) return retval;
|
||||
string_literal1=(Token)match(input,8,FOLLOW_8_in_program272); if (state.failed) return retval;
|
||||
if ( state.backtracking==0 ) {
|
||||
string_literal1_tree = (CommonTree)adaptor.create(string_literal1);
|
||||
adaptor.addChild(root_0, string_literal1_tree);
|
||||
@@ -106,5 +108,5 @@ public class XParser extends Parser {
|
||||
|
||||
|
||||
|
||||
public static final BitSet FOLLOW_7_in_program256 = new BitSet(new long[]{0x0000000000000002L});
|
||||
public static final BitSet FOLLOW_8_in_program272 = new BitSet(new long[]{0x0000000000000002L});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user