Commit 6a5b3458 authored by Florian Lugou's avatar Florian Lugou

added package to JavaCC generated classes

parent cc5e4372
......@@ -27,6 +27,8 @@
*/
package compiler.tmlCPparser;
/**
* An ID.
*/
......
......@@ -33,7 +33,8 @@ options {
PARSER_BEGIN(CPparser) /* The parser class */
//package compiler.tmlCPparser;
package compiler.tmlCPparser;
import tmltranslator.*;
import tmltranslator.tmlcp.*;
import java.util.*;
......
......@@ -9,6 +9,9 @@
* You can modify this class to customize your error reporting
* mechanisms so long as you retain the public fields.
*/
package compiler.tmlCPparser;
public class ParseException extends Exception {
/**
......
......@@ -4,6 +4,8 @@
* Describes the input token stream.
*/
package compiler.tmlCPparser;
public class Token implements java.io.Serializable {
/**
......
/* Generated By:JavaCC: Do not edit this line. JJTTMLExprParserState.java Version 5.0 */
package compiler.tmlgrammar;
public class JJTTMLExprParserState {
private java.util.List<Node> nodes;
private java.util.List<Integer> marks;
......@@ -118,4 +120,4 @@ public class JJTTMLExprParserState {
}
}
}
/* JavaCC - OriginalChecksum=46dfc20b4af3a63efd8d952df60c4ca8 (do not edit this line) */
/* JavaCC - OriginalChecksum=2542dec7fa4feca6fb06cab76319229f (do not edit this line) */
/* Generated By:JJTree: Do not edit this line. Node.java Version 4.3 */
/* JavaCCOptions:MULTI=false,NODE_USES_PARSER=false,VISITOR=false,TRACK_TOKENS=false,NODE_PREFIX=AST,NODE_EXTENDS=,NODE_FACTORY=,SUPPORT_CLASS_VISIBILITY_PUBLIC=true */
package compiler.tmlgrammar;
/* All AST nodes must implement this interface. It provides basic
machinery for constructing the parent and child relationships
between nodes. */
......@@ -31,4 +33,4 @@ interface Node {
/** Return the number of children the node has. */
public int jjtGetNumChildren();
}
/* JavaCC - OriginalChecksum=51a365986f30b3d8da41a4f7d049ee04 (do not edit this line) */
/* JavaCC - OriginalChecksum=4ad84079284f044103e44453dfa3546c (do not edit this line) */
/* Generated By:JavaCC: Do not edit this line. ParseException.java Version 5.0 */
/* JavaCCOptions:KEEP_LINE_COL=null */
package compiler.tmlgrammar;
/**
* This exception is thrown when parse errors are encountered.
* You can explicitly create objects of this exception type by
......@@ -182,4 +184,4 @@ public class ParseException extends Exception {
}
}
/* JavaCC - OriginalChecksum=c5a983a229aa877dc2b3b3b9933cdd6b (do not edit this line) */
/* JavaCC - OriginalChecksum=4929e760f6c3d6118189c013cc32e532 (do not edit this line) */
/* Generated By:JavaCC: Do not edit this line. SimpleCharStream.java Version 5.0 */
/* JavaCCOptions:STATIC=false,SUPPORT_CLASS_VISIBILITY_PUBLIC=true */
package compiler.tmlgrammar;
/**
* An implementation of interface CharStream, where the stream is assumed to
* contain only ASCII characters (without unicode processing).
......@@ -466,4 +468,4 @@ public class SimpleCharStream
}
}
/* JavaCC - OriginalChecksum=b0bce35239226f00f9dd0fa14ab3ad17 (do not edit this line) */
/* JavaCC - OriginalChecksum=a672e47bece66544e9757f714ad0a75e (do not edit this line) */
......@@ -81,6 +81,8 @@ knowledge of the CeCILL license and that you accept its terms.
/* Has been partially generated by: JJTree */
/* Generated By:JJTree: Do not edit this line. SimpleNode.java */
package compiler.tmlgrammar;
import java.util.ArrayList;
public class SimpleNode implements Node {
......
/* Generated By:JJTree&JavaCC: Do not edit this line. TMLExprParser.java */
package compiler.tmlgrammar;
public class TMLExprParser/*@bgen(jjtree)*/implements TMLExprParserTreeConstants, TMLExprParserConstants {/*@bgen(jjtree)*/
protected JJTTMLExprParserState jjtree = new JJTTMLExprParserState();private int x;
......@@ -1638,16 +1640,6 @@ void BoolExtendedExpressionAfterIDComparisonID() :
finally { jj_save(3, xla); }
}
private boolean jj_3_2() {
if (jj_3R_4()) return true;
if (jj_3R_5()) return true;
if (jj_3R_6()) return true;
Token xsp;
xsp = jj_scanpos;
if (jj_3R_7()) jj_scanpos = xsp;
return false;
}
private boolean jj_3R_5() {
Token xsp;
xsp = jj_scanpos;
......@@ -2072,6 +2064,16 @@ void BoolExtendedExpressionAfterIDComparisonID() :
return false;
}
private boolean jj_3_2() {
if (jj_3R_4()) return true;
if (jj_3R_5()) return true;
if (jj_3R_6()) return true;
Token xsp;
xsp = jj_scanpos;
if (jj_3R_7()) jj_scanpos = xsp;
return false;
}
/** Generated Token Manager. */
public TMLExprParserTokenManager token_source;
SimpleCharStream jj_input_stream;
......
......@@ -9,6 +9,8 @@ options {
PARSER_BEGIN(TMLExprParser)
package compiler.tmlgrammar;
public class TMLExprParser {
private int x;
......
/* Generated By:JJTree&JavaCC: Do not edit this line. TMLExprParserConstants.java */
package compiler.tmlgrammar;
/**
* Token literal values and constants.
......
/* Generated By:JJTree&JavaCC: Do not edit this line. TMLExprParserTokenManager.java */
package compiler.tmlgrammar;
/** Token Manager. */
public class TMLExprParserTokenManager implements TMLExprParserConstants
......
/* Generated By:JavaCC: Do not edit this line. TMLExprParserTreeConstants.java Version 5.0 */
package compiler.tmlgrammar;
public interface TMLExprParserTreeConstants
{
public int JJTROOT = 0;
......@@ -76,4 +78,4 @@ public interface TMLExprParserTreeConstants
"BooleanLiteral",
};
}
/* JavaCC - OriginalChecksum=db856ae5b69969f6a69b1ddc524e97d8 (do not edit this line) */
/* JavaCC - OriginalChecksum=731d98692e191944b28db12777bdbfd6 (do not edit this line) */
/* Generated By:JavaCC: Do not edit this line. Token.java Version 5.0 */
/* JavaCCOptions:TOKEN_EXTENDS=,KEEP_LINE_COL=null,SUPPORT_CLASS_VISIBILITY_PUBLIC=true */
package compiler.tmlgrammar;
/**
* Describes the input token stream.
*/
......@@ -126,4 +128,4 @@ public class Token implements java.io.Serializable {
}
}
/* JavaCC - OriginalChecksum=6145f5d5b504ccb4f95e09f2ce3e748a (do not edit this line) */
/* JavaCC - OriginalChecksum=50739bba2a68dc273c1049af41f9ec7a (do not edit this line) */
/* Generated By:JavaCC: Do not edit this line. TokenMgrError.java Version 5.0 */
/* JavaCCOptions: */
package compiler.tmlgrammar;
/** Token Manager Error. */
public class TokenMgrError extends Error
{
......@@ -142,4 +144,4 @@ public class TokenMgrError extends Error
this(LexicalError(EOFSeen, lexState, errorLine, errorColumn, errorAfter, curChar), reason);
}
}
/* JavaCC - OriginalChecksum=3f827858bf5c87e5502cccca67d9b325 (do not edit this line) */
/* JavaCC - OriginalChecksum=5fc2fa2be0769f89926a19bc86e0221c (do not edit this line) */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment