diff options
author | eea1 <eea1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-05-12 18:31:27 +0000 |
---|---|---|
committer | eea1 <eea1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-05-12 18:31:27 +0000 |
commit | 6ff4b5f46b285df4e8884eba9d1f1cc5fb042d4f (patch) | |
tree | b4c7eca3f2a6da28494b1abc88eec97588e92972 /java/src | |
parent | bc74f23196d9cd38f3c5543951fe2ee851f177ac (diff) | |
download | ATCD-6ff4b5f46b285df4e8884eba9d1f1cc5fb042d4f.tar.gz |
Removed the files related to java_cup and JLex. The java_cup directory
and any related project files will also be removed shortly.
Diffstat (limited to 'java/src')
-rwxr-xr-x | java/src/MakeLexer | 4 | ||||
-rwxr-xr-x | java/src/MakeParser | 2 | ||||
-rw-r--r-- | java/src/Yylex.java | 1315 | ||||
-rw-r--r-- | java/src/parser.java | 621 |
4 files changed, 0 insertions, 1942 deletions
diff --git a/java/src/MakeLexer b/java/src/MakeLexer deleted file mode 100755 index 0dfa19a8ebb..00000000000 --- a/java/src/MakeLexer +++ /dev/null @@ -1,4 +0,0 @@ -# What to do to make the Lexer -java JLex.Main Yylex.lex -rm Yylex.java -mv Yylex.lex.java Yylex.java diff --git a/java/src/MakeParser b/java/src/MakeParser deleted file mode 100755 index c0588972a19..00000000000 --- a/java/src/MakeParser +++ /dev/null @@ -1,2 +0,0 @@ -# What to do to make the parser -java java_cup.Main < Svc_Conf.y diff --git a/java/src/Yylex.java b/java/src/Yylex.java deleted file mode 100644 index 50e9d1173d3..00000000000 --- a/java/src/Yylex.java +++ /dev/null @@ -1,1315 +0,0 @@ -package JACE.ServiceConfigurator; -import java.io.*; -import JACE.OS.*; -import java_cup.runtime.*; -// This was written for JLex version 1.2 - - -class Yylex { - private final int YY_BUFFER_SIZE = 512; - private final int YY_F = -1; - private final int YY_NO_STATE = -1; - private final int YY_NOT_ACCEPT = 0; - private final int YY_START = 1; - private final int YY_END = 2; - private final int YY_NO_ANCHOR = 4; - private final byte YYEOF = -1; - - // Used to assemble the parameter string for a service - private String params; - private java.io.DataInputStream yy_instream; - private int yy_buffer_index; - private int yy_buffer_read; - private int yy_buffer_start; - private int yy_buffer_end; - private byte yy_buffer[]; - private int yyline; - private int yy_lexical_state; - Yylex (java.io.InputStream instream) { - if (null == instream) { - throw (new Error("Error: Bad input stream initializer.")); - } - yy_instream = new java.io.DataInputStream(instream); - yy_buffer = new byte[YY_BUFFER_SIZE]; - yy_buffer_read = 0; - yy_buffer_index = 0; - yy_buffer_start = 0; - yy_buffer_end = 0; - yyline = 0; - yy_lexical_state = YYINITIAL; - } - private boolean yy_eof_done = false; - private final int COMMENT = 1; - private final int YYINITIAL = 0; - private final int PARAMS = 2; - private final int yy_state_dtrans[] = { - 0, - 23, - 30 - }; - private void yybegin (int state) { - yy_lexical_state = state; - } - private byte yy_advance () - throws java.io.IOException { - int next_read; - int i; - int j; - - if (yy_buffer_index < yy_buffer_read) { - return yy_buffer[yy_buffer_index++]; - } - - if (0 != yy_buffer_start) { - i = yy_buffer_start; - j = 0; - while (i < yy_buffer_read) { - yy_buffer[j] = yy_buffer[i]; - ++i; - ++j; - } - yy_buffer_end = yy_buffer_end - yy_buffer_start; - yy_buffer_start = 0; - yy_buffer_read = j; - yy_buffer_index = j; - next_read = yy_instream.read(yy_buffer, - yy_buffer_read, - yy_buffer.length - yy_buffer_read); - if (-1 == next_read) { - return YYEOF; - } - yy_buffer_read = yy_buffer_read + next_read; - } - - while (yy_buffer_index >= yy_buffer_read) { - if (yy_buffer_index >= yy_buffer.length) { - yy_buffer = yy_double(yy_buffer); - } - next_read = yy_instream.read(yy_buffer, - yy_buffer_read, - yy_buffer.length - yy_buffer_read); - if (-1 == next_read) { - return YYEOF; - } - yy_buffer_read = yy_buffer_read + next_read; - } - return yy_buffer[yy_buffer_index++]; - } - private void yy_move_start () { - if ((byte) '\n' == yy_buffer[yy_buffer_start]) { - ++yyline; - } - ++yy_buffer_start; - } - private void yy_pushback () { - --yy_buffer_end; - } - private void yy_mark_start () { - int i; - for (i = yy_buffer_start; i < yy_buffer_index; ++i) { - if ((byte) '\n' == yy_buffer[i]) { - ++yyline; - } - } - yy_buffer_start = yy_buffer_index; - } - private void yy_mark_end () { - yy_buffer_end = yy_buffer_index; - } - private void yy_to_mark () { - yy_buffer_index = yy_buffer_end; - } - private java.lang.String yytext () { - return (new java.lang.String(yy_buffer,0, - yy_buffer_start, - yy_buffer_end - yy_buffer_start)); - } - private int yylength () { - return yy_buffer_end - yy_buffer_start; - } - private byte[] yy_double (byte buf[]) { - int i; - byte newbuf[]; - newbuf = new byte[2*buf.length]; - for (i = 0; i < buf.length; ++i) { - newbuf[i] = buf[i]; - } - return newbuf; - } - private final int YY_E_INTERNAL = 0; - private final int YY_E_MATCH = 1; - private java.lang.String yy_error_string[] = { - "Error: Internal error.\n", - "Error: Unmatched input.\n" - }; - private void yy_error (int code,boolean fatal) { - java.lang.System.out.print(yy_error_string[code]); - java.lang.System.out.flush(); - if (fatal) { - throw new Error("Fatal Error.\n"); - } - } - private int yy_acpt[] = { - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NOT_ACCEPT, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NOT_ACCEPT, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR, - YY_NO_ANCHOR - }; - private int yy_cmap[] = { - 0, 0, 0, 0, 0, 0, 0, 0, - 1, 1, 2, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 1, 0, 3, 4, 0, 0, 0, 0, - 5, 6, 7, 0, 0, 8, 8, 8, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 10, 0, 0, 0, 0, 0, - 0, 11, 12, 12, 12, 13, 12, 12, - 12, 12, 12, 12, 12, 14, 12, 15, - 12, 12, 16, 17, 18, 12, 12, 12, - 12, 12, 12, 0, 8, 0, 0, 19, - 0, 20, 21, 22, 23, 24, 12, 12, - 12, 25, 26, 12, 27, 28, 29, 30, - 31, 12, 32, 33, 34, 35, 36, 12, - 12, 37, 12, 38, 0, 39, 0, 0 - - }; - private int yy_rmap[] = { - 0, 1, 1, 1, 1, 1, 1, 2, - 1, 3, 1, 1, 3, 3, 3, 3, - 3, 3, 3, 3, 3, 3, 3, 4, - 1, 1, 1, 1, 5, 6, 7, 8, - 9, 10, 11, 12, 13, 14, 15, 16, - 17, 18, 19, 20, 21, 22, 23, 24, - 25, 26, 27, 28, 29, 30, 31, 32, - 33, 34, 35, 36, 37, 38, 39, 40, - 41, 42, 43, 44, 45, 46, 47, 48, - 49, 50, 51, 52, 53, 54, 55, 56, - 57, 58, 59, 60, 61, 62, 63, 64, - 65, 66, 67 - }; - private int yy_nxt[][] = { - { 1, 28, 28, 2, 3, 4, 5, 6, - 7, 7, 8, 9, 9, 9, 72, 9, - 9, 73, 9, 9, 74, 9, 9, 81, - 9, 84, 9, 9, 9, 9, 9, 9, - 75, 76, 9, 9, 9, 9, 10, 11 - - }, - { -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, - 7, 7, -1, 7, 7, 7, 7, 7, - 7, 7, 7, 7, 7, 7, 7, 7, - 7, 7, 7, 7, 7, 7, 7, 7, - 7, 7, 7, 7, 7, 7, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, -1, -1 - - }, - { 24, 24, 25, 24, 24, 24, 24, 24, - 24, 24, 24, 24, 24, 24, 24, 24, - 24, 24, 24, 24, 24, 24, 24, 24, - 24, 24, 24, 24, 24, 24, 24, 24, - 24, 24, 24, 24, 24, 24, 24, 24 - - }, - { -1, 28, 28, -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, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 12, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, -1, -1 - - }, - { 26, 26, 27, 27, 26, 26, 26, 26, - 26, 26, 26, 26, 26, 26, 26, 26, - 26, 26, 26, 26, 26, 26, 26, 26, - 26, 26, 26, 26, 26, 26, 26, 26, - 26, 26, 26, 26, 26, 26, 26, 26 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 13, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 14, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 15, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 16, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 17, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 18, 9, 9, 9, - 9, 9, 9, 9, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 19, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 20, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 21, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 22, 9, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 29, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 31, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 32, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 33, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 34, 9, 9, 9, - 9, 9, 9, 9, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 35, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 36, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 37, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 38, 9, 9, - 9, 9, 9, 9, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 39, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 40, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 41, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 42, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 43, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 44, 9, - 9, 9, 9, 9, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 45, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 46, 9, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 47, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 48, 9, 9, 9, - 9, 9, 9, 9, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 49, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 50, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 51, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 52, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 53, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 54, 9, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 55, 9, 9, 9, - 9, 56, 9, 9, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 57, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 58, 9, 9, 9, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 59, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 60, - 9, 9, 9, 9, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 61, 9, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 62, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 63, 9, - 9, 9, 9, 9, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 64, 9, 9, 9, 9, 9, - 90, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 65, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 66, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 67, 78, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 68, 9, 9, - 9, 9, 9, 9, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 69, 9, 9, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 70, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 71, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 77, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 79, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 80, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 82, 9, 9, - 9, 9, 9, 9, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 83, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 85, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 86, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 87, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 88, 9, -1, -1 - - }, - { -1, -1, -1, -1, -1, -1, -1, -1, - 7, 9, -1, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 9, 9, 9, 9, 9, 9, 9, 9, - 89, 9, 9, 9, 9, 9, -1, -1 - - } - }; - public java_cup.runtime.token yylex () - throws java.io.IOException { - byte yy_lookahead; - int yy_anchor = YY_NO_ANCHOR; - int yy_state = yy_state_dtrans[yy_lexical_state]; - int yy_next_state = YY_NO_STATE; - int yy_last_accept_state = YY_NO_STATE; - boolean yy_initial = true; - int yy_this_accept; - - yy_mark_start(); - yy_this_accept = yy_acpt[yy_state]; - if (YY_NOT_ACCEPT != yy_this_accept) { - yy_last_accept_state = yy_state; - yy_mark_end(); - } - while (true) { - yy_lookahead = yy_advance(); - yy_next_state = YY_F; - if (YYEOF != yy_lookahead) { - yy_next_state = yy_nxt[yy_rmap[yy_state]][yy_cmap[yy_lookahead]]; - } - if (YY_F != yy_next_state) { - yy_state = yy_next_state; - yy_initial = false; - yy_this_accept = yy_acpt[yy_state]; - if (YY_NOT_ACCEPT != yy_this_accept) { - yy_last_accept_state = yy_state; - yy_mark_end(); - } - } - else { - if (YYEOF == yy_lookahead && true == yy_initial) { - - return new java_cup.runtime.token (sym.EOF); - } - else if (YY_NO_STATE == yy_last_accept_state) { - throw (new Error("Lexical Error: Unmatched Input.")); - } - else { - yy_to_mark(); - yy_anchor = yy_acpt[yy_last_accept_state]; - if (0 != (YY_END & yy_anchor)) { - yy_pushback(); - } - if (0 != (YY_START & yy_anchor)) { - yy_move_start(); - } - switch (yy_last_accept_state) { - case 0: - { /* Skip all white space */ } - case -2: - break; - case 1: - { - ACE.ERROR ("Unknown text, line " + (yyline + 1) + ": \"" + yytext() + "\""); - return new java_cup.runtime.str_token (sym.error); -} - case -3: - break; - case 2: - { - yybegin(PARAMS); - params = new String(); -} - case -4: - break; - case 3: - { yybegin(COMMENT); } - case -5: - break; - case 4: - { return new java_cup.runtime.token (sym.ACE_LPAREN); } - case -6: - break; - case 5: - { return new java_cup.runtime.token (sym.ACE_RPAREN); } - case -7: - break; - case 6: - { return new java_cup.runtime.token (sym.ACE_STAR); } - case -8: - break; - case 7: - { - return new java_cup.runtime.str_token (sym.ACE_PATHNAME, yytext()); -} - case -9: - break; - case 8: - { return new java_cup.runtime.token (sym.ACE_COLON); } - case -10: - break; - case 9: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -11: - break; - case 10: - { return new java_cup.runtime.token (sym.ACE_LBRACE); } - case -12: - break; - case 11: - { return new java_cup.runtime.token (sym.ACE_RBRACE); } - case -13: - break; - case 12: - { return new java_cup.runtime.token (sym.ACE_MODULE_T); } - case -14: - break; - case 13: - { return new java_cup.runtime.token (sym.ACE_STREAM_T); } - case -15: - break; - case 14: - { return new java_cup.runtime.token (sym.ACE_ACTIVE); } - case -16: - break; - case 15: - { return new java_cup.runtime.token (sym.ACE_REMOVE); } - case -17: - break; - case 16: - { return new java_cup.runtime.token (sym.ACE_RESUME); } - case -18: - break; - case 17: - { return new java_cup.runtime.token (sym.ACE_STATIC); } - case -19: - break; - case 18: - { return new java_cup.runtime.token (sym.ACE_USTREAM); } - case -20: - break; - case 19: - {return new java_cup.runtime.token (sym.ACE_DYNAMIC); } - case -21: - break; - case 20: - { return new java_cup.runtime.token (sym.ACE_SUSPEND); } - case -22: - break; - case 21: - { return new java_cup.runtime.token (sym.ACE_INACTIVE); } - case -23: - break; - case 22: - { return new java_cup.runtime.token (sym.ACE_SVC_OBJ_T); } - case -24: - break; - case 24: - { /* Skip everything on a comment line */ } - case -25: - break; - case 25: - { yybegin(YYINITIAL); } - case -26: - break; - case 26: - { - params = params + yytext(); -} - case -27: - break; - case 27: - { - yybegin(YYINITIAL); - return new java_cup.runtime.str_token (sym.ACE_STRING, params); -} - case -28: - break; - case 28: - { /* Skip all white space */ } - case -29: - break; - case 29: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -30: - break; - case 31: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -31: - break; - case 32: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -32: - break; - case 33: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -33: - break; - case 34: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -34: - break; - case 35: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -35: - break; - case 36: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -36: - break; - case 37: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -37: - break; - case 38: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -38: - break; - case 39: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -39: - break; - case 40: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -40: - break; - case 41: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -41: - break; - case 42: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -42: - break; - case 43: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -43: - break; - case 44: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -44: - break; - case 45: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -45: - break; - case 46: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -46: - break; - case 47: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -47: - break; - case 48: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -48: - break; - case 49: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -49: - break; - case 50: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -50: - break; - case 51: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -51: - break; - case 52: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -52: - break; - case 53: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -53: - break; - case 54: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -54: - break; - case 55: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -55: - break; - case 56: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -56: - break; - case 57: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -57: - break; - case 58: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -58: - break; - case 59: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -59: - break; - case 60: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -60: - break; - case 61: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -61: - break; - case 62: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -62: - break; - case 63: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -63: - break; - case 64: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -64: - break; - case 65: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -65: - break; - case 66: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -66: - break; - case 67: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -67: - break; - case 68: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -68: - break; - case 69: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -69: - break; - case 70: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -70: - break; - case 71: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -71: - break; - case 72: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -72: - break; - case 73: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -73: - break; - case 74: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -74: - break; - case 75: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -75: - break; - case 76: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -76: - break; - case 77: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -77: - break; - case 78: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -78: - break; - case 79: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -79: - break; - case 80: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -80: - break; - case 81: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -81: - break; - case 82: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -82: - break; - case 83: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -83: - break; - case 84: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -84: - break; - case 85: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -85: - break; - case 86: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -86: - break; - case 87: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -87: - break; - case 88: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -88: - break; - case 89: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -89: - break; - case 90: - { - return new java_cup.runtime.str_token (sym.ACE_IDENT, yytext()); -} - case -90: - break; - default: - yy_error(YY_E_INTERNAL,false); - case -1: - } - yy_initial = true; - yy_state = yy_state_dtrans[yy_lexical_state]; - yy_next_state = YY_NO_STATE; - yy_last_accept_state = YY_NO_STATE; - yy_mark_start(); - yy_this_accept = yy_acpt[yy_state]; - if (YY_NOT_ACCEPT != yy_this_accept) { - yy_last_accept_state = yy_state; - } - } - } - } - } -} diff --git a/java/src/parser.java b/java/src/parser.java deleted file mode 100644 index ab55b9a8a4e..00000000000 --- a/java/src/parser.java +++ /dev/null @@ -1,621 +0,0 @@ - -//---------------------------------------------------- -// The following code was generated by CUP v0.9e -// Fri Dec 19 15:46:53 CST 1997 -//---------------------------------------------------- - -package JACE.ServiceConfigurator; - -import java.io.*; -import java_cup.runtime.*; -import JACE.OS.*; - -public class parser extends java_cup.runtime.lr_parser { - - /** constructor */ - public parser() {super();} - - /** production table */ - protected static final short _production_table[][] = { - {0, 2}, {9, 2}, {9, 1}, {8, 1}, {8, 1}, - {8, 1}, {8, 1}, {8, 1}, {8, 1}, {1, 3}, - {10, 3}, {3, 2}, {4, 2}, {5, 2}, {7, 3}, - {7, 3}, {17, 1}, {17, 1}, {11, 1}, {11, 2}, - {6, 2}, {6, 0}, {12, 1}, {12, 1}, {12, 1}, - {12, 1}, {12, 1}, {2, 4}, {13, 1}, {13, 1}, - {13, 0}, {14, 3}, {14, 5}, {18, 2}, {18, 2}, - {18, 2}, {16, 1}, {16, 0}, {15, 1}, {15, 1} - }; - - /** access to production table */ - public short[][] production_table() {return _production_table;} - - /** parse action table */ - protected static final short[][] _action_table = { - /*0*/{2,6,3,10,4,15,5,11,6,3,22,2,-1,0}, - /*1*/{2,6,3,10,14,47,-1,0}, - /*2*/{14,44,-1,0}, - /*3*/{0,-5,2,-5,3,-5,4,-5,5,-5,6,-5,22,-5,-1,0}, - /*4*/{0,-7,2,-7,3,-7,4,-7,5,-7,6,-7,22,-7,-1,0}, - /*5*/{14,24,-1,0}, - /*6*/{0,-3,2,6,3,10,4,15,5,11,6,3,22,2,-1,0}, - /*7*/{0,-9,2,-9,3,-9,4,-9,5,-9,6,-9,22,-9,-1,0}, - /*8*/{0,-6,2,-6,3,-6,4,-6,5,-6,6,-6,22,-6,-1,0}, - /*9*/{14,19,-1,0}, - /*10*/{14,18,-1,0}, - /*11*/{0,-8,2,-8,3,-8,4,-8,5,-8,6,-8,22,-8,-1,0}, - /*12*/{0,17,-1,0}, - /*13*/{0,-4,2,-4,3,-4,4,-4,5,-4,6,-4,22,-4,-1,0}, - /*14*/{14,16,-1,0}, - /*15*/{0,-12,2,-12,3,-12,4,-12,5,-12,6,-12,19,-12,22,-12,-1,0}, - /*16*/{0,-1,-1,0}, - /*17*/{0,-13,2,-13,3,-13,4,-13,5,-13,6,-13,19,-13,22,-13,-1,0}, - /*18*/{0,-38,2,-38,3,-38,4,-38,5,-38,6,-38,15,20,18,-38,19,-38,22,-38,-1,0}, - /*19*/{0,-37,2,-37,3,-37,4,-37,5,-37,6,-37,18,-37,19,-37,22,-37,-1,0}, - /*20*/{0,-11,2,-11,3,-11,4,-11,5,-11,6,-11,18,-11,19,-11,22,-11,-1,0}, - /*21*/{0,-2,-1,0}, - /*22*/{0,-38,2,-38,3,-38,4,-38,5,-38,6,-38,15,20,18,-38,19,-38,22,-38,-1,0}, - /*23*/{8,26,9,28,10,27,-1,0}, - /*24*/{13,32,14,35,-1,0}, - /*25*/{20,31,-1,0}, - /*26*/{20,30,-1,0}, - /*27*/{20,29,-1,0}, - /*28*/{13,-36,14,-36,-1,0}, - /*29*/{13,-35,14,-35,-1,0}, - /*30*/{13,-34,14,-34,-1,0}, - /*31*/{21,-39,-1,0}, - /*32*/{0,-31,2,-31,3,-31,4,-31,5,-31,6,-31,11,42,12,41,15,-31,18,-31,19,-31,22,-31,-1,0}, - /*33*/{21,36,-1,0}, - /*34*/{21,-40,-1,0}, - /*35*/{14,37,-1,0}, - /*36*/{0,-32,2,-32,3,-32,4,-32,5,-32,6,-32,11,-32,12,-32,15,-32,16,38,18,-32,19,-32,22,-32,-1,0}, - /*37*/{17,39,-1,0}, - /*38*/{0,-33,2,-33,3,-33,4,-33,5,-33,6,-33,11,-33,12,-33,15,-33,18,-33,19,-33,22,-33,-1,0}, - /*39*/{0,-28,2,-28,3,-28,4,-28,5,-28,6,-28,15,-28,18,-28,19,-28,22,-28,-1,0}, - /*40*/{0,-30,2,-30,3,-30,4,-30,5,-30,6,-30,15,-30,18,-30,19,-30,22,-30,-1,0}, - /*41*/{0,-29,2,-29,3,-29,4,-29,5,-29,6,-29,15,-29,18,-29,19,-29,22,-29,-1,0}, - /*42*/{0,-10,2,-10,3,-10,4,-10,5,-10,6,-10,18,-10,19,-10,22,-10,-1,0}, - /*43*/{0,-14,2,-14,3,-14,4,-14,5,-14,6,-14,19,-14,22,-14,-1,0}, - /*44*/{2,-18,3,-18,4,-18,5,-18,6,-18,18,-18,19,-18,-1,0}, - /*45*/{2,-22,3,-22,4,-22,5,-22,6,-22,18,50,19,-22,-1,0}, - /*46*/{2,-22,3,-22,4,-22,5,-22,6,-22,18,50,19,-22,-1,0}, - /*47*/{2,-17,3,-17,4,-17,5,-17,6,-17,18,-17,19,-17,-1,0}, - /*48*/{2,6,3,10,4,15,5,11,6,3,19,54,-1,0}, - /*49*/{0,-19,2,-19,3,-19,4,-19,5,-19,6,-19,22,-19,-1,0}, - /*50*/{0,-16,2,-16,3,-16,4,-16,5,-16,6,-16,22,-16,-1,0}, - /*51*/{2,-21,3,-21,4,-21,5,-21,6,-21,19,-21,-1,0}, - /*52*/{2,-24,3,-24,4,-24,5,-24,6,-24,19,-24,-1,0}, - /*53*/{0,-20,2,-20,3,-20,4,-20,5,-20,6,-20,22,-20,-1,0}, - /*54*/{2,-26,3,-26,4,-26,5,-26,6,-26,19,-26,-1,0}, - /*55*/{2,-25,3,-25,4,-25,5,-25,6,-25,19,-25,-1,0}, - /*56*/{2,-27,3,-27,4,-27,5,-27,6,-27,19,-27,-1,0}, - /*57*/{2,-23,3,-23,4,-23,5,-23,6,-23,19,-23,-1,0}, - /*58*/{0,-15,2,-15,3,-15,4,-15,5,-15,6,-15,22,-15,-1,0}, - }; - - /** access to parse action table */ - public short[][] action_table() {return _action_table;} - - /** reduce_goto table */ - protected static final short[][] _reduce_table = { - /*0*/{1,13,3,8,4,4,5,11,7,7,8,6,9,12,10,3,-1,-1}, - /*1*/{1,47,10,44,17,45,-1,-1}, - /*2*/{-1,-1}, - /*3*/{-1,-1}, - /*4*/{-1,-1}, - /*5*/{2,22,-1,-1}, - /*6*/{1,13,3,8,4,4,5,11,7,7,8,6,9,21,10,3,-1,-1}, - /*7*/{-1,-1}, - /*8*/{-1,-1}, - /*9*/{-1,-1}, - /*10*/{-1,-1}, - /*11*/{-1,-1}, - /*12*/{-1,-1}, - /*13*/{-1,-1}, - /*14*/{-1,-1}, - /*15*/{-1,-1}, - /*16*/{-1,-1}, - /*17*/{-1,-1}, - /*18*/{16,20,-1,-1}, - /*19*/{-1,-1}, - /*20*/{-1,-1}, - /*21*/{-1,-1}, - /*22*/{16,42,-1,-1}, - /*23*/{18,24,-1,-1}, - /*24*/{14,32,15,33,-1,-1}, - /*25*/{-1,-1}, - /*26*/{-1,-1}, - /*27*/{-1,-1}, - /*28*/{-1,-1}, - /*29*/{-1,-1}, - /*30*/{-1,-1}, - /*31*/{-1,-1}, - /*32*/{13,39,-1,-1}, - /*33*/{-1,-1}, - /*34*/{-1,-1}, - /*35*/{-1,-1}, - /*36*/{-1,-1}, - /*37*/{-1,-1}, - /*38*/{-1,-1}, - /*39*/{-1,-1}, - /*40*/{-1,-1}, - /*41*/{-1,-1}, - /*42*/{-1,-1}, - /*43*/{-1,-1}, - /*44*/{-1,-1}, - /*45*/{6,48,11,58,-1,-1}, - /*46*/{6,48,11,50,-1,-1}, - /*47*/{-1,-1}, - /*48*/{1,57,3,55,4,54,5,56,10,52,12,51,-1,-1}, - /*49*/{-1,-1}, - /*50*/{-1,-1}, - /*51*/{-1,-1}, - /*52*/{-1,-1}, - /*53*/{-1,-1}, - /*54*/{-1,-1}, - /*55*/{-1,-1}, - /*56*/{-1,-1}, - /*57*/{-1,-1}, - /*58*/{-1,-1}, - }; - - /** access to reduce_goto table */ - public short[][] reduce_table() {return _reduce_table;} - - /** instance of action encapsulation class */ - protected CUP$actions action_obj; - - /** action encapsulation object initializer */ - protected void init_actions() - { - action_obj = new CUP$actions(); - } - - /** invoke a user supplied parse action */ - public java_cup.runtime.symbol do_action( - int act_num, - java_cup.runtime.lr_parser parser, - java.util.Stack stack, - int top) - throws java.lang.Exception - { - /* call code in generated class */ - return action_obj.CUP$do_action(act_num, parser, stack, top); - } - - /** start state */ - public int start_state() {return 0;} - /** start production */ - public int start_production() {return 0;} - - /** EOF symbol index */ - public int EOF_sym() {return 0;} - - /** error symbol index */ - public int error_sym() {return 1;} - - - /** user initialization */ - public void user_init() throws java.lang.Exception - { - - try { - - FileInputStream fs = new FileInputStream(new String(ServiceConfig.serviceConfigFile_)); - - this.setLexer(new Yylex(fs)); - - } catch (FileNotFoundException fnf) { - - ACE.ERROR("File not found: " + fnf); - - } catch (SecurityException se) { - - ACE.ERROR("Security: " + se); - } - - } - - /** scan to get the next token */ - public java_cup.runtime.token scan() - throws java.lang.Exception - { - return this.lexer_.yylex(); - } - - - // Lexical Analyzer - private Yylex lexer_; - - public void setLexer(Yylex lexer) - { - this.lexer_ = lexer; - } - -}; - -/** Cup generated class to encapsulate user supplied action code.*/ -class CUP$actions { - - /** Constructor */ - CUP$actions() { } - - /** Method with the actual generated action code. */ - public final java_cup.runtime.symbol CUP$do_action( - int CUP$act_num, - java_cup.runtime.lr_parser CUP$parser, - java.util.Stack CUP$stack, - int CUP$top) - throws java.lang.Exception - { - /* object for return from actions */ - java_cup.runtime.symbol CUP$result; - - /* select the action based on the action number */ - switch (CUP$act_num) - { - /*. . . . . . . . . . . . . . . . . . . .*/ - case 39: // pathname ::= ACE_IDENT - { - CUP$result = new java_cup.runtime.str_token(/*pathname*/15); - ((java_cup.runtime.str_token)CUP$result).str_val = new String((/*e*/(str_token)CUP$stack.elementAt(CUP$top-0)).str_val); - } - return CUP$result; - - /*. . . . . . . . . . . . . . . . . . . .*/ - case 38: // pathname ::= ACE_PATHNAME - { - CUP$result = new java_cup.runtime.str_token(/*pathname*/15); - ((java_cup.runtime.str_token)CUP$result).str_val = new String((/*e*/(str_token)CUP$stack.elementAt(CUP$top-0)).str_val); - } - return CUP$result; - - /*. . . . . . . . . . . . . . . . . . . .*/ - case 37: // parameters_opt ::= - { - CUP$result = new java_cup.runtime.str_token(/*parameters_opt*/16); - - } - return CUP$result; - - /*. . . . . . . . . . . . . . . . . . . .*/ - case 36: // parameters_opt ::= ACE_STRING - { - CUP$result = new java_cup.runtime.str_token(/*parameters_opt*/16); - ((java_cup.runtime.str_token)CUP$result).str_val = new String((/*e*/(str_token)CUP$stack.elementAt(CUP$top-0)).str_val); - } - return CUP$result; - - /*. . . . . . . . . . . . . . . . . . . .*/ - case 35: // type ::= ACE_STREAM_T ACE_STAR - { - CUP$result = new java_cup.runtime.str_token(/*type*/18); - - } - return CUP$result; - - /*. . . . . . . . . . . . . . . . . . . .*/ - case 34: // type ::= ACE_SVC_OBJ_T ACE_STAR - { - CUP$result = new java_cup.runtime.str_token(/*type*/18); - ((java_cup.runtime.str_token)CUP$result).str_val = new String("Service Object"); - } - return CUP$result; - - /*. . . . . . . . . . . . . . . . . . . .*/ - case 33: // type ::= ACE_MODULE_T ACE_STAR - { - CUP$result = new java_cup.runtime.str_token(/*type*/18); - - } - return CUP$result; - - /*. . . . . . . . . . . . . . . . . . . .*/ - case 32: // svc_initializer ::= pathname ACE_COLON ACE_IDENT ACE_LPAREN ACE_RPAREN - { - CUP$result = new java_cup.runtime.str_token(/*svc_initializer*/14); - ((java_cup.runtime.str_token)CUP$result).str_val = new String((/*e1*/(java_cup.runtime.str_token)CUP$stack.elementAt(CUP$top-4)).str_val + ":" + (/*e2*/(str_token)CUP$stack.elementAt(CUP$top-2)).str_val); - } - return CUP$result; - - /*. . . . . . . . . . . . . . . . . . . .*/ - case 31: // svc_initializer ::= pathname ACE_COLON ACE_IDENT - { - CUP$result = new java_cup.runtime.str_token(/*svc_initializer*/14); - ((java_cup.runtime.str_token)CUP$result).str_val = new String((/*e1*/(java_cup.runtime.str_token)CUP$stack.elementAt(CUP$top-2)).str_val + ":" + (/*e2*/(str_token)CUP$stack.elementAt(CUP$top-0)).str_val); - } - return CUP$result; - - /*. . . . . . . . . . . . . . . . . . . .*/ - case 30: // status ::= - { - CUP$result = new java_cup.runtime.int_token(/*status*/13); - // Default case - ((java_cup.runtime.int_token)CUP$result).int_val = 0; - } - return CUP$result; - - /*. . . . . . . . . . . . . . . . . . . .*/ - case 29: // status ::= ACE_INACTIVE - { - CUP$result = new java_cup.runtime.int_token(/*status*/13); - ((java_cup.runtime.int_token)CUP$result).int_val = 1; - } - return CUP$result; - - /*. . . . . . . . . . . . . . . . . . . .*/ - case 28: // status ::= ACE_ACTIVE - { - CUP$result = new java_cup.runtime.int_token(/*status*/13); - ((java_cup.runtime.int_token)CUP$result).int_val = 0; - } - return CUP$result; - - /*. . . . . . . . . . . . . . . . . . . .*/ - case 27: // svc_location ::= ACE_IDENT type svc_initializer status - { - CUP$result = new AddServiceObjectNode(/*svc_location*/2); - - boolean suspended = false; - if ((/*e4*/(java_cup.runtime.int_token)CUP$stack.elementAt(CUP$top-0)).int_val == 1) - suspended = true; - - ((AddServiceObjectNode)CUP$result).init((/*e1*/(str_token)CUP$stack.elementAt(CUP$top-3)).str_val, (/*e3*/(java_cup.runtime.str_token)CUP$stack.elementAt(CUP$top-1)).str_val, suspended); - - } - return CUP$result; - - /*. . . . . . . . . . . . . . . . . . . .*/ - case 26: // module ::= remove - { - CUP$result = new java_cup.runtime.str_token(/*module*/12); - - } - return CUP$result; - - /*. . . . . . . . . . . . . . . . . . . .*/ - case 25: // module ::= resume - { - CUP$result = new java_cup.runtime.str_token(/*module*/12); - - } - return CUP$result; - - /*. . . . . . . . . . . . . . . . . . . .*/ - case 24: // module ::= suspend - { - CUP$result = new java_cup.runtime.str_token(/*module*/12); - - } - return CUP$result; - - /*. . . . . . . . . . . . . . . . . . . .*/ - case 23: // module ::= static - { - CUP$result = new java_cup.runtime.str_token(/*module*/12); - - } - return CUP$result; - - /*. . . . . . . . . . . . . . . . . . . .*/ - case 22: // module ::= dynamic - { - CUP$result = new java_cup.runtime.str_token(/*module*/12); - - } - return CUP$result; - - /*. . . . . . . . . . . . . . . . . . . .*/ - case 21: // module_list ::= - { - CUP$result = new ParseNode(/*module_list*/6); - ACE.ERROR("Not implemented: module manipulation"); - } - return CUP$result; - - /*. . . . . . . . . . . . . . . . . . . .*/ - case 20: // module_list ::= module_list module - { - CUP$result = new ParseNode(/*module_list*/6); - ACE.ERROR("Not implemented: module manipulation"); - } - return CUP$result; - - /*. . . . . . . . . . . . . . . . . . . .*/ - case 19: // stream_modules ::= module_list ACE_RBRACE - { - CUP$result = new java_cup.runtime.str_token(/*stream_modules*/11); - - } - return CUP$result; - - /*. . . . . . . . . . . . . . . . . . . .*/ - case 18: // stream_modules ::= ACE_LBRACE - { - CUP$result = new java_cup.runtime.str_token(/*stream_modules*/11); - - } - return CUP$result; - - /*. . . . . . . . . . . . . . . . . . . .*/ - case 17: // stream_ops ::= static - { - CUP$result = new java_cup.runtime.str_token(/*stream_ops*/17); - - } - return CUP$result; - - /*. . . . . . . . . . . . . . . . . . . .*/ - case 16: // stream_ops ::= dynamic - { - CUP$result = new java_cup.runtime.str_token(/*stream_ops*/17); - - } - return CUP$result; - - /*. . . . . . . . . . . . . . . . . . . .*/ - case 15: // stream ::= ACE_USTREAM ACE_IDENT stream_modules - { - CUP$result = new ParseNode(/*stream*/7); - - } - return CUP$result; - - /*. . . . . . . . . . . . . . . . . . . .*/ - case 14: // stream ::= ACE_USTREAM stream_ops stream_modules - { - CUP$result = new ParseNode(/*stream*/7); - - } - return CUP$result; - - /*. . . . . . . . . . . . . . . . . . . .*/ - case 13: // remove ::= ACE_REMOVE ACE_IDENT - { - CUP$result = new RemoveNode(/*remove*/5); - - ((RemoveNode)CUP$result).init((/*e1*/(str_token)CUP$stack.elementAt(CUP$top-0)).str_val); - - } - return CUP$result; - - /*. . . . . . . . . . . . . . . . . . . .*/ - case 12: // resume ::= ACE_RESUME ACE_IDENT - { - CUP$result = new ResumeNode(/*resume*/4); - - ((ResumeNode)CUP$result).init((/*e1*/(str_token)CUP$stack.elementAt(CUP$top-0)).str_val); - - } - return CUP$result; - - /*. . . . . . . . . . . . . . . . . . . .*/ - case 11: // suspend ::= ACE_SUSPEND ACE_IDENT - { - CUP$result = new SuspendNode(/*suspend*/3); - - ((SuspendNode)CUP$result).init((/*e1*/(str_token)CUP$stack.elementAt(CUP$top-0)).str_val); - - } - return CUP$result; - - /*. . . . . . . . . . . . . . . . . . . .*/ - case 10: // static ::= ACE_STATIC ACE_IDENT parameters_opt - { - CUP$result = new ParseNode(/*static*/10); - - } - return CUP$result; - - /*. . . . . . . . . . . . . . . . . . . .*/ - case 9: // dynamic ::= ACE_DYNAMIC svc_location parameters_opt - { - CUP$result = new AddServiceObjectNode(/*dynamic*/1); - - ((AddServiceObjectNode)CUP$result).init((/*e1*/(AddServiceObjectNode)CUP$stack.elementAt(CUP$top-1)).name(), (/*e1*/(AddServiceObjectNode)CUP$stack.elementAt(CUP$top-1)).locator(), (/*e1*/(AddServiceObjectNode)CUP$stack.elementAt(CUP$top-1)).suspended()); - - ((AddServiceObjectNode)CUP$result).params((/*e2*/(java_cup.runtime.str_token)CUP$stack.elementAt(CUP$top-0)).str_val); - - } - return CUP$result; - - /*. . . . . . . . . . . . . . . . . . . .*/ - case 8: // svc_config_entry ::= stream - { - CUP$result = new ParseNode(/*svc_config_entry*/8); - ACE.ERROR("Not implemented: stream loading"); - } - return CUP$result; - - /*. . . . . . . . . . . . . . . . . . . .*/ - case 7: // svc_config_entry ::= remove - { - CUP$result = new ParseNode(/*svc_config_entry*/8); - - - - } - return CUP$result; - - /*. . . . . . . . . . . . . . . . . . . .*/ - case 6: // svc_config_entry ::= resume - { - CUP$result = new ParseNode(/*svc_config_entry*/8); - /* Empty -- result auto set to resume */ - - } - return CUP$result; - - /*. . . . . . . . . . . . . . . . . . . .*/ - case 5: // svc_config_entry ::= suspend - { - CUP$result = new ParseNode(/*svc_config_entry*/8); - - /* Empty -- result auto set to suspend */ - /* CUP$result = (ParseNode)CUP$stack.elementAt(CUP$top-0); */ - - } - return CUP$result; - - /*. . . . . . . . . . . . . . . . . . . .*/ - case 4: // svc_config_entry ::= static - { - CUP$result = new ParseNode(/*svc_config_entry*/8); - - /* More graceful error system needed here */ - ACE.ERROR("Not implemented: static service loading"); - } - return CUP$result; - - /*. . . . . . . . . . . . . . . . . . . .*/ - case 3: // svc_config_entry ::= dynamic - { - CUP$result = new ParseNode(/*svc_config_entry*/8); - - /* Empty -- result auto set to dynamic */ - /* CUP$result = (ParseNode)CUP$stack.elementAt(CUP$top-0); */ - - } - return CUP$result; - - /*. . . . . . . . . . . . . . . . . . . .*/ - case 2: // svc_config_entries ::= svc_config_entry - { - CUP$result = new ParseNode(/*svc_config_entries*/9); - - if ((/*e1*/(ParseNode)CUP$stack.elementAt(CUP$top-0)) != null) - (/*e1*/(ParseNode)CUP$stack.elementAt(CUP$top-0)).apply(); - - } - return CUP$result; - - /*. . . . . . . . . . . . . . . . . . . .*/ - case 1: // svc_config_entries ::= svc_config_entry svc_config_entries - { - CUP$result = new ParseNode(/*svc_config_entries*/9); - - if ((/*e1*/(ParseNode)CUP$stack.elementAt(CUP$top-1)) != null) - (/*e1*/(ParseNode)CUP$stack.elementAt(CUP$top-1)).apply(); - - } - return CUP$result; - - /*. . . . . . . . . . . . . . . . . . . .*/ - case 0: // $START ::= svc_config_entries EOF - { - CUP$result = new java_cup.runtime.token(/*$START*/0); - - } - /* ACCEPT */ - CUP$parser.done_parsing(); - return CUP$result; - - /* . . . . . .*/ - default: - throw new Exception( - "Invalid action number found in internal parse table"); - - } - } -}; - |