CVS libqdox-java/debian/patches
Trygve Laugst??l
trygvis-guest at haydn.debian.org
Mon Aug 15 03:11:17 UTC 2005
Update of /cvsroot/pkg-java/libqdox-java/debian/patches
In directory haydn:/tmp/cvs-serv10078/debian/patches
Modified Files:
01_build_files 02_parser_files
Log Message:
o Cleaning up rules and setting the correct build depends.
--- /cvsroot/pkg-java/libqdox-java/debian/patches/01_build_files 2005/08/14 20:20:35 1.1.1.1
+++ /cvsroot/pkg-java/libqdox-java/debian/patches/01_build_files 2005/08/15 03:11:17 1.2
@@ -1,1079 +1,5 @@
-diff -r -uN -x target -x src -x tmp -x debian -x core -x lib -x extensions -x examples -x .cvsignore -x Parser.java ../qdox-1.5/JFlexLexer.java ./JFlexLexer.java
---- ../qdox-1.5/JFlexLexer.java 1970-01-01 01:00:00.000000000 +0100
-+++ ./JFlexLexer.java 2005-08-14 21:06:28.631218216 +0200
-@@ -0,0 +1,1069 @@
-+/* The following code was generated by JFlex 1.3.5 on 8/14/05 9:06 PM */
-+
-+// class headers
-+package com.thoughtworks.qdox.parser.impl;
-+import com.thoughtworks.qdox.parser.*;
-+
-+/**
-+ * This class is a scanner generated by
-+ * <a href="http://www.jflex.de/">JFlex</a> 1.3.5
-+ * on 8/14/05 9:06 PM from the specification file
-+ * <tt>file:/home/trygvis/dev/org.debian.pkg-java/libqdox-java/src/grammar/lexer.flex</tt>
-+ */
-+public class JFlexLexer implements Lexer {
-+
-+ /** This character denotes the end of file */
-+ final public static int YYEOF = -1;
-+
-+ /** initial size of the lookahead buffer */
-+ final private static int YY_BUFFERSIZE = 16384;
-+
-+ /** lexical states */
-+ final public static int MULTILINECOMMENT = 14;
-+ final public static int ASSIGNMENT = 6;
-+ final public static int STRING = 8;
-+ final public static int CODEBLOCK = 4;
-+ final public static int YYINITIAL = 0;
-+ final public static int SINGLELINECOMMENT = 12;
-+ final public static int CHAR = 10;
-+ final public static int JAVADOC = 2;
-+
-+ /**
-+ * YY_LEXSTATE[l] is the state in the DFA for the lexical state l
-+ * YY_LEXSTATE[l+1] is the state in the DFA for the lexical state l
-+ * at the beginning of a line
-+ * l is of the form l = 2*k, k a non negative integer
-+ */
-+ private final static int YY_LEXSTATE[] = {
-+ 0, 0, 1, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8
-+ };
-+
-+ /**
-+ * Translates characters to character classes
-+ */
-+ final private static String yycmap_packed =
-+ "\11\0\1\3\1\2\2\0\1\1\22\0\1\3\1\0\1\54\1\0"+
-+ "\1\53\1\0\1\47\1\55\1\43\1\44\1\4\1\0\1\10\1\0"+
-+ "\1\7\1\5\12\53\1\0\1\6\1\45\1\52\1\46\2\0\32\53"+
-+ "\1\41\1\56\1\42\1\0\1\53\1\0\1\12\1\25\1\13\1\27"+
-+ "\1\16\1\32\1\15\1\35\1\17\1\53\1\14\1\26\1\20\1\33"+
-+ "\1\21\1\11\1\53\1\22\1\31\1\23\1\24\1\30\1\37\1\40"+
-+ "\1\34\1\36\1\50\1\0\1\51\uff82\0";
-+
-+ /**
-+ * Translates characters to character classes
-+ */
-+ final private static char [] yycmap = yy_unpack_cmap(yycmap_packed);
-+
-+ /**
-+ * Translates a state to a row index in the transition table
-+ */
-+ final private static int yy_rowMap [] = {
-+ 0, 47, 94, 141, 188, 235, 282, 329, 376, 423,
-+ 470, 423, 517, 423, 423, 423, 564, 611, 658, 705,
-+ 752, 799, 846, 893, 940, 987, 1034, 423, 423, 423,
-+ 423, 423, 423, 423, 423, 423, 423, 423, 423, 1081,
-+ 1128, 423, 1175, 1222, 1269, 1316, 423, 423, 423, 423,
-+ 423, 423, 1363, 1410, 1457, 1504, 1551, 423, 1598, 1645,
-+ 1692, 1739, 1786, 1833, 1880, 1927, 1974, 2021, 2068, 2115,
-+ 2162, 2209, 2256, 2303, 423, 1175, 423, 1222, 2350, 1081,
-+ 423, 1269, 423, 1551, 2397, 2444, 2491, 2538, 2585, 2632,
-+ 2679, 2726, 2773, 2820, 2867, 2914, 2961, 3008, 3055, 3102,
-+ 3149, 3196, 3243, 3290, 3337, 3384, 3431, 3478, 3525, 3572,
-+ 3619, 3666, 3713, 3760, 3807, 3854, 3901, 3948, 3995, 4042,
-+ 4089, 4136, 4183, 4230, 705, 4277, 4324, 4371, 4418, 4465,
-+ 4512, 4559, 4606, 4653, 4700, 705, 4747, 4794, 4841, 4888,
-+ 705, 4935, 4982, 705, 5029, 5076, 5123, 705, 5170, 705,
-+ 5217, 5264, 705, 705, 705, 5311, 5358, 705, 5405, 5452,
-+ 5499, 5546, 5593, 5640, 5687, 705, 5734, 5781, 5828, 705,
-+ 705, 5875, 705, 5922, 705, 705, 5969, 705, 6016, 6063,
-+ 705
-+ };
-+
-+ /**
-+ * The packed transition table of the DFA (part 0)
-+ */
-+ final private static String yy_packed0 =
-+ "\1\12\1\13\2\12\1\14\1\15\1\16\1\17\1\20"+
-+ "\1\21\1\22\1\23\2\24\1\25\1\26\3\24\1\27"+
-+ "\4\24\1\30\1\31\1\32\1\33\5\24\1\34\1\35"+
-+ "\1\36\1\37\1\40\1\41\1\42\1\43\1\44\1\45"+
-+ "\1\24\1\46\1\47\1\12\1\50\1\51\1\52\1\12"+
-+ "\1\53\53\50\1\51\1\52\1\54\1\55\52\50\1\12"+
-+ "\1\13\3\12\1\56\42\12\1\57\1\60\2\12\1\46"+
-+ "\1\47\2\12\1\13\3\12\1\56\1\61\1\12\1\62"+
-+ "\30\12\1\57\1\63\1\57\1\63\3\12\1\57\1\63"+
-+ "\2\12\1\46\1\47\2\12\1\13\52\12\1\64\1\12"+
-+ "\1\65\1\12\1\13\53\12\1\64\1\66\1\12\1\67"+
-+ "\1\64\55\12\1\13\2\12\1\70\52\12\61\0\1\12"+
-+ "\60\0\1\71\1\72\62\0\1\24\1\73\7\24\1\74"+
-+ "\1\24\1\75\14\24\12\0\1\24\14\0\14\24\1\76"+
-+ "\13\24\12\0\1\24\14\0\15\24\1\77\12\24\12\0"+
-+ "\1\24\14\0\30\24\12\0\1\24\14\0\27\24\1\100"+
-+ "\12\0\1\24\14\0\7\24\1\101\12\24\1\102\5\24"+
-+ "\12\0\1\24\14\0\11\24\1\103\12\24\1\104\3\24"+
-+ "\12\0\1\24\14\0\10\24\1\105\17\24\12\0\1\24"+
-+ "\14\0\12\24\1\106\10\24\1\107\4\24\12\0\1\24"+
-+ "\14\0\6\24\1\110\21\24\12\0\1\24\14\0\1\24"+
-+ "\1\111\26\24\12\0\1\24\3\0\1\50\3\0\1\112"+
-+ "\52\50\2\0\1\52\54\0\1\50\3\113\1\114\1\115"+
-+ "\51\50\3\0\1\116\1\117\52\0\1\120\3\121\1\122"+
-+ "\1\115\51\120\4\0\1\123\1\72\125\0\1\12\1\0"+
-+ "\1\12\55\0\2\12\2\0\1\64\61\0\1\64\55\0"+
-+ "\1\124\63\0\2\24\1\125\25\24\12\0\1\24\14\0"+
-+ "\6\24\1\126\1\24\1\127\17\24\12\0\1\24\14\0"+
-+ "\14\24\1\130\13\24\12\0\1\24\14\0\20\24\1\131"+
-+ "\7\24\12\0\1\24\14\0\1\24\1\132\26\24\12\0"+
-+ "\1\24\14\0\12\24\1\133\15\24\12\0\1\24\14\0"+
-+ "\1\134\27\24\12\0\1\24\14\0\12\24\1\135\15\24"+
-+ "\12\0\1\24\14\0\1\24\1\136\26\24\12\0\1\24"+
-+ "\14\0\11\24\1\137\16\24\12\0\1\24\14\0\15\24"+
-+ "\1\140\12\24\12\0\1\24\14\0\1\24\1\141\7\24"+
-+ "\1\142\16\24\12\0\1\24\14\0\22\24\1\143\5\24"+
-+ "\12\0\1\24\14\0\22\24\1\144\5\24\12\0\1\24"+
-+ "\14\0\12\24\1\145\15\24\12\0\1\24\3\0\1\50"+
-+ "\3\113\1\112\1\0\51\50\4\121\1\117\1\0\51\121"+
-+ "\11\0\3\24\1\146\24\24\12\0\1\24\14\0\17\24"+
-+ "\1\147\10\24\12\0\1\24\14\0\12\24\1\150\15\24"+
-+ "\12\0\1\24\14\0\15\24\1\151\12\24\12\0\1\24"+
-+ "\14\0\12\24\1\152\15\24\12\0\1\24\14\0\20\24"+
-+ "\1\153\7\24\12\0\1\24\14\0\5\24\1\154\22\24"+
-+ "\12\0\1\24\14\0\10\24\1\155\4\24\1\156\12\24"+
-+ "\12\0\1\24\14\0\5\24\1\157\22\24\12\0\1\24"+
-+ "\14\0\22\24\1\160\5\24\12\0\1\24\14\0\10\24"+
-+ "\1\161\17\24\12\0\1\24\14\0\1\24\1\162\26\24"+
-+ "\12\0\1\24\14\0\12\24\1\163\15\24\12\0\1\24"+
-+ "\14\0\6\24\1\164\21\24\12\0\1\24\14\0\2\24"+
-+ "\1\165\25\24\12\0\1\24\14\0\1\24\1\166\26\24"+
-+ "\12\0\1\24\14\0\6\24\1\167\21\24\12\0\1\24"+
-+ "\14\0\1\24\1\170\26\24\12\0\1\24\14\0\1\24"+
-+ "\1\171\26\24\12\0\1\24\14\0\5\24\1\172\22\24"+
-+ "\12\0\1\24\14\0\6\24\1\173\21\24\12\0\1\24"+
-+ "\14\0\11\24\1\174\16\24\12\0\1\24\14\0\20\24"+
-+ "\1\175\7\24\12\0\1\24\14\0\22\24\1\176\5\24"+
-+ "\12\0\1\24\14\0\11\24\1\177\16\24\12\0\1\24"+
-+ "\14\0\5\24\1\200\22\24\12\0\1\24\14\0\11\24"+
-+ "\1\201\16\24\12\0\1\24\14\0\20\24\1\202\7\24"+
-+ "\12\0\1\24\14\0\26\24\1\203\1\24\12\0\1\24"+
-+ "\14\0\12\24\1\204\15\24\12\0\1\24\14\0\6\24"+
-+ "\1\205\21\24\12\0\1\24\14\0\2\24\1\206\25\24"+
-+ "\12\0\1\24\14\0\24\24\1\207\3\24\12\0\1\24"+
-+ "\14\0\15\24\1\210\12\24\12\0\1\24\14\0\17\24"+
-+ "\1\211\10\24\12\0\1\24\14\0\4\24\1\212\23\24"+
-+ "\12\0\1\24\14\0\12\24\1\213\15\24\12\0\1\24"+
-+ "\14\0\2\24\1\214\25\24\12\0\1\24\14\0\2\24"+
-+ "\1\215\25\24\12\0\1\24\14\0\1\24\1\216\26\24"+
-+ "\12\0\1\24\14\0\16\24\1\217\11\24\12\0\1\24"+
-+ "\14\0\12\24\1\220\15\24\12\0\1\24\14\0\7\24"+
-+ "\1\221\20\24\12\0\1\24\14\0\21\24\1\222\6\24"+
-+ "\12\0\1\24\14\0\6\24\1\223\21\24\12\0\1\24"+
-+ "\14\0\20\24\1\224\7\24\12\0\1\24\14\0\6\24"+
-+ "\1\225\21\24\12\0\1\24\14\0\2\24\1\226\25\24"+
-+ "\12\0\1\24\14\0\12\24\1\227\15\24\12\0\1\24"+
-+ "\14\0\11\24\1\230\16\24\12\0\1\24\14\0\5\24"+
-+ "\1\231\22\24\12\0\1\24\14\0\5\24\1\232\22\24"+
-+ "\12\0\1\24\14\0\5\24\1\233\22\24\12\0\1\24"+
-+ "\14\0\12\24\1\234\15\24\12\0\1\24\14\0\2\24"+
-+ "\1\235\25\24\12\0\1\24\14\0\20\24\1\236\7\24"+
-+ "\12\0\1\24\14\0\5\24\1\237\22\24\12\0\1\24"+
-+ "\14\0\1\24\1\240\26\24\12\0\1\24\14\0\5\24"+
-+ "\1\241\22\24\12\0\1\24\14\0\15\24\1\242\12\24"+
-+ "\12\0\1\24\14\0\21\24\1\243\6\24\12\0\1\24"+
-+ "\14\0\10\24\1\244\17\24\12\0\1\24\14\0\5\24"+
-+ "\1\245\22\24\12\0\1\24\14\0\12\24\1\246\15\24"+
-+ "\12\0\1\24\14\0\22\24\1\247\5\24\12\0\1\24"+
-+ "\14\0\2\24\1\250\25\24\12\0\1\24\14\0\22\24"+
-+ "\1\251\5\24\12\0\1\24\14\0\5\24\1\252\22\24"+
-+ "\12\0\1\24\14\0\1\253\27\24\12\0\1\24\14\0"+
-+ "\22\24\1\254\5\24\12\0\1\24\14\0\16\24\1\255"+
-+ "\11\24\12\0\1\24\14\0\12\24\1\256\15\24\12\0"+
-+ "\1\24\14\0\5\24\1\257\22\24\12\0\1\24\14\0"+
-+ "\12\24\1\260\15\24\12\0\1\24\14\0\6\24\1\261"+
-+ "\21\24\12\0\1\24\14\0\20\24\1\262\7\24\12\0"+
-+ "\1\24\14\0\25\24\1\263\2\24\12\0\1\24\14\0"+
-+ "\5\24\1\264\22\24\12\0\1\24\14\0\16\24\1\265"+
-+ "\11\24\12\0\1\24\3\0";
-+
-+ /**
-+ * The transition table of the DFA
-+ */
-+ final private static int yytrans [] = yy_unpack();
-+
-+
-+ /* error codes */
-+ final private static int YY_UNKNOWN_ERROR = 0;
-+ final private static int YY_ILLEGAL_STATE = 1;
-+ final private static int YY_NO_MATCH = 2;
-+ final private static int YY_PUSHBACK_2BIG = 3;
-+
-+ /* error messages for the codes above */
-+ final private static String YY_ERROR_MSG[] = {
-+ "Unkown internal scanner error",
-+ "Internal error: unknown state",
-+ "Error: could not match input",
-+ "Error: pushback value was too large"
-+ };
-+
-+ /**
-+ * YY_ATTRIBUTE[aState] contains the attributes of state <code>aState</code>
-+ */
-+ private final static byte YY_ATTRIBUTE[] = {
-+ 1, 0, 0, 0, 0, 0, 0, 0, 0, 9, 1, 9, 1, 9, 9, 9,
-+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 9, 9, 9, 9, 9,
-+ 9, 9, 9, 9, 9, 9, 9, 1, 1, 9, 3, 1, 3, 1, 9, 9,
-+ 9, 9, 9, 9, 1, 1, 1, 1, 1, 9, 1, 1, 1, 1, 1, 1,
-+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 13, 2, 9, 0, 2, 5,
-+ 13, 2, 9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
-+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
-+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
-+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
-+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
-+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
-+ 1, 1, 1, 1, 1
-+ };
-+
-+ /** the input device */
-+ private java.io.Reader yy_reader;
-+
-+ /** the current state of the DFA */
-+ private int yy_state;
-+
-+ /** the current lexical state */
-+ private int yy_lexical_state = YYINITIAL;
-+
-+ /** this buffer contains the current text to be matched and is
-+ the source of the yytext() string */
-+ private char yy_buffer[] = new char[YY_BUFFERSIZE];
-+
-+ /** the textposition at the last accepting state */
-+ private int yy_markedPos;
-+
-+ /** the textposition at the last state to be included in yytext */
-+ private int yy_pushbackPos;
-+
-+ /** the current text position in the buffer */
-+ private int yy_currentPos;
-+
-+ /** startRead marks the beginning of the yytext() string in the buffer */
-+ private int yy_startRead;
-+
-+ /** endRead marks the last character in the buffer, that has been read
-+ from input */
-+ private int yy_endRead;
-+
-+ /** number of newlines encountered up to the start of the matched text */
-+ private int yyline;
-+
-+ /** the number of characters up to the start of the matched text */
-+ private int yychar;
-+
-+ /**
-+ * the number of characters from the last newline up to the start of the
-+ * matched text
-+ */
-+ private int yycolumn;
-+
-+ /**
-+ * yy_atBOL == true <=> the scanner is currently at the beginning of a line
-+ */
-+ private boolean yy_atBOL = true;
-+
-+ /** yy_atEOF == true <=> the scanner is at the EOF */
-+ private boolean yy_atEOF;
-+
-+ /** denotes if the user-EOF-code has already been executed */
-+ private boolean yy_eof_done;
-+
-+ /* user code: */
-+
-+ private int classDepth = 0;
-+ private int braceDepth = 0;
-+ private int stateDepth = 0;
-+ private int[] stateStack = new int[10];
-+ private boolean javaDocNewLine;
-+ private boolean javaDocStartedContent;
-+
-+ public String text() {
-+ return yytext();
-+ }
-+
-+ public int lex() throws java.io.IOException {
-+ return yylex();
-+ }
-+
-+ public int getLine() {
-+ return yyline + 1;
-+ }
-+
-+ public int getColumn() {
-+ return yycolumn + 1;
-+ }
-+
-+ private void pushState(int newState) {
-+ stateStack[stateDepth++] = yy_lexical_state;
-+ yybegin(newState);
-+ }
-+
-+ private void popState() {
-+ yybegin(stateStack[--stateDepth]);
-+ }
-+
-+
-+
-+ /**
-+ * Creates a new scanner
-+ * There is also a java.io.InputStream version of this constructor.
-+ *
-+ * @param in the java.io.Reader to read input from.
-+ */
-+ public JFlexLexer(java.io.Reader in) {
-+ this.yy_reader = in;
-+ }
-+
-+ /**
-+ * Creates a new scanner.
-+ * There is also java.io.Reader version of this constructor.
-+ *
-+ * @param in the java.io.Inputstream to read input from.
-+ */
-+ public JFlexLexer(java.io.InputStream in) {
-+ this(new java.io.InputStreamReader(in));
-+ }
-+
-+ /**
-+ * Unpacks the split, compressed DFA transition table.
-+ *
-+ * @return the unpacked transition table
-+ */
-+ private static int [] yy_unpack() {
-+ int [] trans = new int[6110];
-+ int offset = 0;
-+ offset = yy_unpack(yy_packed0, offset, trans);
-+ return trans;
-+ }
-+
-+ /**
-+ * Unpacks the compressed DFA transition table.
-+ *
-+ * @param packed the packed transition table
-+ * @return the index of the last entry
-+ */
-+ private static int yy_unpack(String packed, int offset, int [] trans) {
-+ int i = 0; /* index in packed string */
-+ int j = offset; /* index in unpacked array */
-+ int l = packed.length();
-+ while (i < l) {
-+ int count = packed.charAt(i++);
-+ int value = packed.charAt(i++);
-+ value--;
-+ do trans[j++] = value; while (--count > 0);
-+ }
-+ return j;
-+ }
-+
-+ /**
-+ * Unpacks the compressed character translation table.
-+ *
-+ * @param packed the packed character translation table
-+ * @return the unpacked character translation table
-+ */
-+ private static char [] yy_unpack_cmap(String packed) {
-+ char [] map = new char[0x10000];
-+ int i = 0; /* index in packed string */
-+ int j = 0; /* index in unpacked array */
-+ while (i < 132) {
-+ int count = packed.charAt(i++);
-+ char value = packed.charAt(i++);
-+ do map[j++] = value; while (--count > 0);
-+ }
-+ return map;
-+ }
-+
-+
-+ /**
-+ * Refills the input buffer.
-+ *
-+ * @return <code>false</code>, iff there was new input.
-+ *
-+ * @exception IOException if any I/O-Error occurs
-+ */
-+ private boolean yy_refill() throws java.io.IOException {
-+
-+ /* first: make room (if you can) */
-+ if (yy_startRead > 0) {
[683 lines skipped]
--- /cvsroot/pkg-java/libqdox-java/debian/patches/02_parser_files 2005/08/14 20:20:36 1.1.1.1
+++ /cvsroot/pkg-java/libqdox-java/debian/patches/02_parser_files 2005/08/15 03:11:17 1.2
@@ -1,5 +1,968 @@
--- /dev/null 2005-04-30 15:48:21.320416232 +0200
-+++ JFlexLexer.java 2005-08-14 21:06:28.631218216 +0200
++++ Parser.java 2005-08-15 04:03:17.549122272 +0200
+@@ -0,0 +1,960 @@
++//### This file created by BYACC 1.8(/Java extension 1.1)
++//### Java capabilities added 7 Jan 97, Bob Jamison
++//### Updated : 27 Nov 97 -- Bob Jamison, Joe Nieten
++//### 01 Jan 98 -- Bob Jamison -- fixed generic semantic constructor
++//### 01 Jun 99 -- Bob Jamison -- added Runnable support
++//### 06 Aug 00 -- Bob Jamison -- made state variables class-global
++//### 03 Jan 01 -- Bob Jamison -- improved flags, tracing
++//### 16 May 01 -- Bob Jamison -- added custom stack sizing
++//### Please send bug reports to rjamison at lincom-asg.com
++//### static char yysccsid[] = "@(#)yaccpar 1.8 (Berkeley) 01/20/90";
++
++
++
++package com.thoughtworks.qdox.parser.impl;
++
++
++
++//#line 2 "src/grammar/parser.y"
++import com.thoughtworks.qdox.parser.*;
++import com.thoughtworks.qdox.parser.structs.*;
++import java.io.IOException;
++//#line 19 "Parser.java"
++
++
++
++
++/**
++ * Encapsulates yacc() parser functionality in a Java
++ * class for quick code development
++ */
++public class Parser
++{
++
++boolean yydebug; //do I want debug output?
++int yynerrs; //number of errors so far
++int yyerrflag; //was there an error?
++int yychar; //the current working character
++
++//########## MESSAGES ##########
++//###############################################################
++// method: debug
++//###############################################################
++void debug(String msg)
++{
++ if (yydebug)
++ System.out.println(msg);
++}
++
++//########## STATE STACK ##########
++final static int YYSTACKSIZE = 500; //maximum stack size
++int statestk[],stateptr; //state stack
++int stateptrmax; //highest index of stackptr
++int statemax; //state when highest index reached
++//###############################################################
++// methods: state stack push,pop,drop,peek
++//###############################################################
++void state_push(int state)
++{
++ if (stateptr>=YYSTACKSIZE) //overflowed?
++ return;
++ statestk[++stateptr]=state;
++ if (stateptr>statemax)
++ {
++ statemax=state;
++ stateptrmax=stateptr;
++ }
++}
++int state_pop()
++{
++ if (stateptr<0) //underflowed?
++ return -1;
++ return statestk[stateptr--];
++}
++void state_drop(int cnt)
++{
++int ptr;
++ ptr=stateptr-cnt;
++ if (ptr<0)
++ return;
++ stateptr = ptr;
++}
++int state_peek(int relative)
++{
++int ptr;
++ ptr=stateptr-relative;
++ if (ptr<0)
++ return -1;
++ return statestk[ptr];
++}
++//###############################################################
++// method: init_stacks : allocate and prepare stacks
++//###############################################################
++boolean init_stacks()
++{
++ statestk = new int[YYSTACKSIZE];
++ stateptr = -1;
++ statemax = -1;
++ stateptrmax = -1;
++ val_init();
++ return true;
++}
++//###############################################################
++// method: dump_stacks : show n levels of the stacks
++//###############################################################
++void dump_stacks(int count)
++{
++int i;
++ System.out.println("=index==state====value= s:"+stateptr+" v:"+valptr);
++ for (i=0;i<count;i++)
++ System.out.println(" "+i+" "+statestk[i]+" "+valstk[i]);
++ System.out.println("======================");
++}
++
++
++//########## SEMANTIC VALUES ##########
++//## **user defined:Value
++String yytext;//user variable to return contextual strings
++Value yyval; //used to return semantic vals from action routines
++Value yylval;//the 'lval' (result) I got from yylex()
++Value valstk[];
++int valptr;
++//###############################################################
++// methods: value stack push,pop,drop,peek.
++//###############################################################
++void val_init()
++{
++ valstk=new Value[YYSTACKSIZE];
++ yyval=new Value();
++ yylval=new Value();
++ valptr=-1;
++}
++void val_push(Value val)
++{
++ if (valptr>=YYSTACKSIZE)
++ return;
++ valstk[++valptr]=val;
++}
++Value val_pop()
++{
++ if (valptr<0)
++ return null;
++ return valstk[valptr--];
++}
++void val_drop(int cnt)
++{
++int ptr;
++ ptr=valptr-cnt;
++ if (ptr<0)
++ return;
++ valptr = ptr;
++}
++Value val_peek(int relative)
++{
++int ptr;
++ ptr=valptr-relative;
++ if (ptr<0)
++ return null;
++ return valstk[ptr];
++}
++//#### end semantic value section ####
++public final static short SEMI=257;
++public final static short DOT=258;
++public final static short COMMA=259;
++public final static short STAR=260;
++public final static short EQUALS=261;
++public final static short PACKAGE=262;
++public final static short IMPORT=263;
++public final static short PUBLIC=264;
++public final static short PROTECTED=265;
++public final static short PRIVATE=266;
++public final static short STATIC=267;
++public final static short FINAL=268;
++public final static short ABSTRACT=269;
++public final static short NATIVE=270;
++public final static short STRICTFP=271;
++public final static short SYNCHRONIZED=272;
++public final static short TRANSIENT=273;
++public final static short VOLATILE=274;
++public final static short CLASS=275;
++public final static short INTERFACE=276;
++public final static short THROWS=277;
++public final static short EXTENDS=278;
++public final static short IMPLEMENTS=279;
++public final static short BRACEOPEN=280;
++public final static short BRACECLOSE=281;
++public final static short SQUAREOPEN=282;
++public final static short SQUARECLOSE=283;
++public final static short PARENOPEN=284;
++public final static short PARENCLOSE=285;
++public final static short LESSTHAN=286;
++public final static short GREATERTHAN=287;
++public final static short AMPERSAND=288;
++public final static short JAVADOCSTART=289;
++public final static short JAVADOCEND=290;
++public final static short CODEBLOCK=291;
++public final static short STRING=292;
++public final static short IDENTIFIER=293;
++public final static short JAVADOCTAG=294;
++public final static short JAVADOCTOKEN=295;
++public final static short YYERRCODE=256;
++final static short yylhs[] = { -1,
++ 0, 0, 6, 6, 6, 6, 7, 8, 9, 11,
++ 13, 13, 14, 12, 12, 16, 15, 1, 1, 1,
++ 5, 3, 3, 2, 2, 2, 2, 2, 2, 2,
++ 2, 2, 2, 2, 17, 17, 4, 18, 18, 19,
++ 19, 10, 22, 20, 23, 23, 24, 24, 27, 27,
++ 28, 29, 29, 30, 30, 25, 25, 32, 31, 31,
++ 26, 26, 33, 33, 21, 35, 21, 34, 34, 34,
++ 34, 34, 34, 34, 39, 39, 41, 36, 40, 42,
++ 40, 37, 38, 43, 45, 45, 46, 46, 44, 44,
++ 48, 48, 47, 49, 49,
++};
++final static short yylen[] = { 2,
++ 0, 2, 1, 1, 1, 1, 3, 3, 4, 1,
++ 0, 2, 1, 0, 2, 0, 3, 1, 3, 3,
++ 2, 0, 3, 1, 1, 1, 1, 1, 1, 1,
++ 1, 1, 1, 1, 0, 2, 3, 0, 3, 1,
++ 3, 4, 0, 7, 1, 1, 0, 3, 1, 3,
++ 2, 0, 2, 1, 3, 0, 2, 0, 3, 3,
++ 0, 2, 1, 3, 0, 0, 3, 1, 1, 1,
++ 1, 2, 1, 1, 1, 1, 0, 6, 0, 0,
++ 4, 5, 4, 4, 0, 2, 1, 3, 0, 2,
++ 0, 3, 3, 0, 2,
++};
++final static short yydefred[] = { 1,
++ 0, 0, 0, 11, 2, 3, 4, 5, 6, 0,
++ 35, 18, 0, 0, 14, 0, 65, 0, 7, 0,
++ 8, 0, 13, 12, 0, 24, 25, 26, 27, 28,
++ 29, 30, 34, 31, 33, 32, 45, 46, 36, 0,
++ 20, 19, 9, 16, 15, 42, 0, 0, 11, 74,
++ 68, 73, 0, 67, 69, 70, 71, 0, 0, 0,
++ 72, 0, 0, 0, 0, 40, 0, 0, 49, 0,
++ 0, 0, 0, 0, 22, 0, 77, 0, 51, 0,
++ 48, 0, 0, 0, 44, 0, 91, 0, 75, 76,
++ 83, 0, 0, 0, 0, 79, 0, 0, 53, 41,
++ 50, 0, 0, 0, 0, 0, 0, 95, 0, 0,
++ 39, 0, 82, 0, 0, 59, 0, 0, 0, 84,
++ 94, 22, 93, 23, 80, 78, 55, 0, 0, 0,
++ 92, 0, 0, 81, 0,
++};
++final static short yydgoto[] = { 1,
++ 63, 39, 94, 66, 77, 5, 6, 7, 8, 9,
++ 15, 22, 16, 24, 45, 49, 18, 75, 67, 10,
++ 25, 11, 40, 59, 71, 85, 68, 69, 79, 99,
++ 83, 102, 105, 54, 47, 55, 56, 57, 91, 114,
++ 96, 132, 73, 86, 120, 130, 87, 107, 88,
++};
++final static short yysindex[] = { 0,
++ -114, -286, -286, 0, 0, 0, 0, 0, 0, -255,
++ 0, 0, -158, -73, 0, -206, 0, -71, 0, -221,
++ 0, -285, 0, 0, -200, 0, 0, 0, 0, 0,
++ 0, 0, 0, 0, 0, 0, 0, 0, 0, -149,
++ 0, 0, 0, 0, 0, 0, -254, -195, 0, 0,
++ 0, 0, -146, 0, 0, 0, 0, -147, -126, -206,
++ 0, -110, -210, -135, -90, 0, -81, -98, 0, -286,
++ -89, 0, -229, -286, 0, -110, 0, -286, 0, -147,
++ 0, -67, -40, -286, 0, -65, 0, -101, 0, 0,
++ 0, -185, -61, -61, -229, 0, 0, -209, 0, 0,
++ 0, -64, -286, -67, -36, -53, -34, 0, -66, -286,
++ 0, -57, 0, -213, -286, 0, -67, -286, -286, 0,
++ 0, 0, 0, 0, 0, 0, 0, -67, -67, -31,
++ 0, -66, -286, 0, -67,
++};
++final static short yyrindex[] = { 0,
++ -58, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++ 0, 0, 0, 0, 0, -204, 0, 0, 0, 0,
++ 0, 0, 0, 0, -253, 0, 0, 0, 0, 0,
++ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
++ 0, 0, 0, 0, 0, 0, -161, -97, 0, 0,
++ 0, 0, 0, 0, 0, 0, 0, 0, -119, -139,
++ 0, -252, -235, 0, -202, 0, 0, 0, 0, 0,
++ -50, -131, 0, 0, 0, -249, 0, 0, 0, 0,
++ 0, -192, -93, 0, 0, 0, 0, 0, 0, 0,
++ 0, 0, -233, -214, 0, 0, -190, 0, 0, 0,
++ 0, -103, 0, -184, -49, -226, -56, 0, 0, 0,
++ 0, 0, 0, 0, 0, 0, -100, 0, 0, 0,
++ 0, 0, 0, 0, 0, 0, 0, -130, -208, -225,
++ 0, 0, 0, 0, -196,
++};
++final static short yygindex[] = { 0,
++ -2, 144, 158, -51, -39, 0, 0, 0, 187, 188,
++ 0, 0, 189, 0, 0, 0, 190, 134, 79, 0,
++ 0, 0, 0, 0, 0, 0, 0, 159, 0, 0,
++ 0, 0, 0, 0, 0, 0, 0, 0, -22, 0,
++ 0, 0, 164, 0, 0, 0, 120, 0, 0,
++};
++final static int YYTABLESIZE=241;
++final static short yytable[] = { 13,
++ 14, 64, 50, 66, 43, 18, 12, 22, 44, 22,
++ 66, 66, 66, 66, 66, 66, 66, 66, 66, 66,
++ 66, 66, 66, 38, 17, 37, 97, 89, 100, 18,
++ 85, 86, 22, 18, 4, 66, 109, 66, 41, 66,
++ 18, 22, 21, 89, 21, 125, 38, 20, 87, 110,
++ 87, 38, 38, 37, 37, 18, 18, 38, 100, 37,
++ 88, 90, 88, 127, 85, 86, 58, 82, 40, 123,
++ 21, 42, 113, 110, 63, 74, 21, 90, 115, 18,
++ 46, 104, 87, 18, 52, 10, 58, 58, 23, 10,
++ 58, 126, 134, 58, 88, 63, 54, 40, 19, 20,
++ 117, 111, 35, 35, 35, 35, 35, 35, 35, 35,
++ 35, 35, 35, 43, 43, 128, 129, 26, 27, 28,
++ 29, 30, 31, 32, 33, 34, 35, 36, 64, 35,
++ 135, 35, 94, 94, 94, 94, 94, 94, 94, 94,
++ 94, 94, 94, 48, 61, 65, 62, 2, 3, 64,
++ 17, 70, 92, 89, 17, 38, 98, 76, 60, 56,
++ 56, 94, 26, 27, 28, 29, 30, 31, 32, 33,
++ 34, 35, 36, 72, 4, 38, 38, 80, 60, 60,
++ 47, 47, 47, 21, 20, 57, 57, 78, 81, 84,
++ 20, 12, 26, 27, 28, 29, 30, 31, 32, 33,
++ 34, 35, 36, 37, 38, 43, 43, 43, 43, 43,
++ 43, 43, 43, 43, 43, 43, 43, 43, 103, 106,
++ 112, 74, 118, 119, 121, 124, 122, 133, 90, 61,
++ 62, 108, 93, 51, 52, 116, 53, 60, 101, 95,
++ 131,
++};
++final static short yycheck[] = { 2,
++ 3, 53, 257, 257, 290, 258, 293, 257, 294, 259,
++ 264, 265, 266, 267, 268, 269, 270, 271, 272, 273,
++ 274, 275, 276, 259, 280, 259, 78, 257, 80, 282,
++ 257, 257, 282, 286, 289, 289, 88, 291, 260, 293,
++ 293, 291, 257, 257, 259, 259, 282, 258, 257, 259,
++ 259, 287, 288, 287, 288, 258, 259, 293, 110, 293,
++ 257, 291, 259, 115, 291, 291, 259, 70, 259, 109,
++ 285, 293, 95, 259, 259, 286, 291, 291, 288, 282,
++ 281, 84, 291, 286, 287, 290, 279, 280, 295, 294,
++ 286, 114, 132, 286, 291, 280, 287, 288, 257, 258,
++ 103, 287, 264, 265, 266, 267, 268, 269, 270, 271,
++ 272, 273, 274, 275, 276, 118, 119, 264, 265, 266,
++ 267, 268, 269, 270, 271, 272, 273, 274, 259, 291,
++ 133, 293, 264, 265, 266, 267, 268, 269, 270, 271,
++ 272, 273, 274, 293, 291, 293, 293, 262, 263, 280,
++ 290, 278, 74, 285, 294, 259, 78, 293, 259, 279,
++ 280, 293, 264, 265, 266, 267, 268, 269, 270, 271,
++ 272, 273, 274, 284, 289, 279, 280, 259, 279, 280,
++ 278, 279, 280, 257, 258, 279, 280, 278, 287, 279,
++ 258, 293, 264, 265, 266, 267, 268, 269, 270, 271,
++ 272, 273, 274, 275, 276, 264, 265, 266, 267, 268,
++ 269, 270, 271, 272, 273, 274, 275, 276, 259, 285,
++ 282, 286, 259, 277, 259, 283, 293, 259, 285, 280,
++ 280, 88, 75, 47, 47, 102, 47, 49, 80, 76,
++ 121,
++};
++final static short YYFINAL=1;
++final static short YYMAXTOKEN=295;
++final static String yyname[] = {
++"end-of-file",null,null,null,null,null,null,null,null,null,null,null,null,null,
++null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,
++null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,
++null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,
++null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,
++null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,
++null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,
++null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,
++null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,
++null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,
++null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,
++null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,
++null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,
++null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,
++null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,
++null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,
++null,null,null,"SEMI","DOT","COMMA","STAR","EQUALS","PACKAGE","IMPORT","PUBLIC",
++"PROTECTED","PRIVATE","STATIC","FINAL","ABSTRACT","NATIVE","STRICTFP",
++"SYNCHRONIZED","TRANSIENT","VOLATILE","CLASS","INTERFACE","THROWS","EXTENDS",
++"IMPLEMENTS","BRACEOPEN","BRACECLOSE","SQUAREOPEN","SQUARECLOSE","PARENOPEN",
++"PARENCLOSE","LESSTHAN","GREATERTHAN","AMPERSAND","JAVADOCSTART","JAVADOCEND",
++"CODEBLOCK","STRING","IDENTIFIER","JAVADOCTAG","JAVADOCTOKEN",
++};
++final static String yyrule[] = {
++"$accept : file",
++"file :",
++"file : file filepart",
++"filepart : package",
++"filepart : import",
++"filepart : javadoc",
++"filepart : class",
++"package : PACKAGE fullidentifier SEMI",
++"import : IMPORT fullidentifier SEMI",
++"javadoc : JAVADOCSTART javadocdescription javadoctags JAVADOCEND",
++"javadocdescription : javadoctokens",
++"javadoctokens :",
++"javadoctokens : javadoctokens javadoctoken",
++"javadoctoken : JAVADOCTOKEN",
++"javadoctags :",
++"javadoctags : javadoctags javadoctag",
++"$$1 :",
++"javadoctag : JAVADOCTAG $$1 javadoctokens",
++"fullidentifier : IDENTIFIER",
++"fullidentifier : fullidentifier DOT IDENTIFIER",
++"fullidentifier : fullidentifier DOT STAR",
++"arrayidentifier : IDENTIFIER dimensions",
++"dimensions :",
++"dimensions : dimensions SQUAREOPEN SQUARECLOSE",
++"modifier : PUBLIC",
[572 lines skipped]
More information about the pkg-java-commits
mailing list