You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by to...@apache.org on 2004/01/08 09:16:05 UTC
cvs commit: db-ojb/src/java/org/apache/ojb/odmg/oql oql-ojb.g OQLLexer.java
tomdz 2004/01/08 00:16:05
Modified: src/java/org/apache/ojb/odmg/oql oql-ojb.g OQLLexer.java
Log:
Changed character set from ASCII to unicode
Revision Changes Path
1.22 +1 -1 db-ojb/src/java/org/apache/ojb/odmg/oql/oql-ojb.g
Index: oql-ojb.g
===================================================================
RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/odmg/oql/oql-ojb.g,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- oql-ojb.g 13 Oct 2003 16:46:29 -0000 1.21
+++ oql-ojb.g 8 Jan 2004 08:16:05 -0000 1.22
@@ -87,7 +87,7 @@
class OQLLexer extends Lexer ;
options {
k = 2;
- charVocabulary = '\3'..'\377';
+ charVocabulary = '\u0003'..'\uFFFE';
testLiterals=false; // don't automatically test for literals
caseSensitive=true;
caseSensitiveLiterals=true;
1.15 +22 -13 db-ojb/src/java/org/apache/ojb/odmg/oql/OQLLexer.java
Index: OQLLexer.java
===================================================================
RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/odmg/oql/OQLLexer.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- OQLLexer.java 7 Jan 2004 19:03:16 -0000 1.14
+++ OQLLexer.java 8 Jan 2004 08:16:05 -0000 1.15
@@ -926,7 +926,7 @@
match('"');
text.setLength(_begin); text.append("\"");
}
- else if ((_tokenSet_4.member(LA(1))) && ((LA(2) >= '\u0003' && LA(2) <= '\u00ff'))) {
+ else if ((_tokenSet_4.member(LA(1))) && ((LA(2) >= '\u0003' && LA(2) <= '\ufffe'))) {
{
match(_tokenSet_4);
}
@@ -1046,7 +1046,7 @@
{
_loop62:
do {
- if (((LA(1)=='*') && ((LA(2) >= '\u0003' && LA(2) <= '\u00ff')))&&( LA(2)!='/' )) {
+ if (((LA(1)=='*') && ((LA(2) >= '\u0003' && LA(2) <= '\ufffe')))&&( LA(2)!='/' )) {
match('*');
}
else if ((LA(1)=='\n')) {
@@ -1075,45 +1075,54 @@
private static final long[] mk_tokenSet_0() {
- long[] data = { 105621835743232L, 576460745995190270L, 0L, 0L, 0L};
+ long[] data = new long[1025];
+ data[0]=105621835743232L;
+ data[1]=576460745995190270L;
return data;
}
public static final BitSet _tokenSet_0 = new BitSet(mk_tokenSet_0());
private static final long[] mk_tokenSet_1() {
- long[] data = { 288019269919178752L, 0L, 0L, 0L, 0L};
+ long[] data = new long[1025];
+ data[0]=288019269919178752L;
return data;
}
public static final BitSet _tokenSet_1 = new BitSet(mk_tokenSet_1());
private static final long[] mk_tokenSet_2() {
- long[] data = { 288054523010744320L, 576460745995190270L, 0L, 0L, 0L};
+ long[] data = new long[1025];
+ data[0]=288054523010744320L;
+ data[1]=576460745995190270L;
return data;
}
public static final BitSet _tokenSet_2 = new BitSet(mk_tokenSet_2());
private static final long[] mk_tokenSet_3() {
- long[] data = new long[8];
+ long[] data = new long[2048];
data[0]=-549755814920L;
- for (int i = 1; i<=3; i++) { data[i]=-1L; }
+ for (int i = 1; i<=1022; i++) { data[i]=-1L; }
+ data[1023]=9223372036854775807L;
return data;
}
public static final BitSet _tokenSet_3 = new BitSet(mk_tokenSet_3());
private static final long[] mk_tokenSet_4() {
- long[] data = new long[8];
+ long[] data = new long[2048];
data[0]=-17179870216L;
- for (int i = 1; i<=3; i++) { data[i]=-1L; }
+ for (int i = 1; i<=1022; i++) { data[i]=-1L; }
+ data[1023]=9223372036854775807L;
return data;
}
public static final BitSet _tokenSet_4 = new BitSet(mk_tokenSet_4());
private static final long[] mk_tokenSet_5() {
- long[] data = new long[8];
+ long[] data = new long[2048];
data[0]=-1032L;
- for (int i = 1; i<=3; i++) { data[i]=-1L; }
+ for (int i = 1; i<=1022; i++) { data[i]=-1L; }
+ data[1023]=9223372036854775807L;
return data;
}
public static final BitSet _tokenSet_5 = new BitSet(mk_tokenSet_5());
private static final long[] mk_tokenSet_6() {
- long[] data = new long[8];
+ long[] data = new long[2048];
data[0]=-4398046512136L;
- for (int i = 1; i<=3; i++) { data[i]=-1L; }
+ for (int i = 1; i<=1022; i++) { data[i]=-1L; }
+ data[1023]=9223372036854775807L;
return data;
}
public static final BitSet _tokenSet_6 = new BitSet(mk_tokenSet_6());
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org