Author: shane.bryzak(a)jboss.com
Date: 2009-11-30 19:42:53 -0500 (Mon, 30 Nov 2009)
New Revision: 11706
Removed:
modules/trunk/remoting/src/main/java/org/jboss/seam/remoting/annotationparser/jtb.out.jj
Log:
oops, remove jtb stuff
Deleted:
modules/trunk/remoting/src/main/java/org/jboss/seam/remoting/annotationparser/jtb.out.jj
===================================================================
---
modules/trunk/remoting/src/main/java/org/jboss/seam/remoting/annotationparser/jtb.out.jj 2009-12-01
00:35:25 UTC (rev 11705)
+++
modules/trunk/remoting/src/main/java/org/jboss/seam/remoting/annotationparser/jtb.out.jj 2009-12-01
00:42:53 UTC (rev 11706)
@@ -1,640 +0,0 @@
-//
-// Generated by JTB 1.3.2
-//
-
-options {
- JAVA_UNICODE_ESCAPE = true;
- ERROR_REPORTING = false;
- STATIC = false;
-}
-
-PARSER_BEGIN(AnnotationParser)
-package org.jboss.seam.remoting.annotationparser;
-
-import java.io.*;
-import syntaxtree.*;
-import java.util.Vector;
-
-
-public class AnnotationParser
-{
- public AnnotationParser(String fileName)
- {
- this(System.in);
- try
- {
- ReInit(new FileInputStream(new File(fileName)));
- }
- catch (Exception e)
- {
- e.printStackTrace();
- }
- }
- public static void main(String args[])
- {
- AnnotationParser parser;
- if ( args.length == 0 )
- {
- System.out.println("AnnotationParser: Reading from standard input . .
.");
- parser = new AnnotationParser(System.in);
- }
- else
- if ( args.length == 1 )
- {
- System.out.println("AnnotationParser: Reading from file " +
args[0]+ " . . .");
- try
- {
- parser = new AnnotationParser(new java.io.FileInputStream(args[0]));
- }
- catch (java.io.FileNotFoundException e)
- {
- System.out.println("AnnotationParser: File " + args[0]+ "
not found.");
- return;
- }
- }
- else
- {
- System.out.println("AnnotationParser: Usage is one of:");
- System.out.println(" java AnnotationParser <
inputfile");
- System.out.println("OR");
- System.out.println(" java AnnotationParser inputfile");
- return;
- }
- try
- {
- parser.AnnotationsUnit();
- System.out.println("AnnotationParser: Annotations parsed
successfully.");
- }
- catch (ParseException e)
- {
- System.out.println(e.getMessage());
- System.out.println("AnnotationParser: Encountered errors during
parse.");
- }
- }
-}
-
-class JTBToolkit {
- static NodeToken makeNodeToken(Token t) {
- return new NodeToken(t.image.intern(), t.kind, t.beginLine, t.beginColumn,
t.endLine, t.endColumn);
- }
-}
-
-
-PARSER_END(AnnotationParser)
-
-SKIP :
-{
- " "
- | "\t"
- | "\n"
- | "\r"
- | "\f"
-}
-
-MORE :
-{
- "//" : IN_SINGLE_LINE_COMMENT
- | <"/**" ~["/"]>
- {
- input_stream.backup(1);
- } : IN_FORMAL_COMMENT
- | "/*" : IN_MULTI_LINE_COMMENT
-}
-
-<IN_SINGLE_LINE_COMMENT> SPECIAL_TOKEN :
-{
- <SINGLE_LINE_COMMENT: "\n" | "\r" | "\r\n"> :
DEFAULT
-}
-
-<IN_FORMAL_COMMENT> SPECIAL_TOKEN :
-{
- <FORMAL_COMMENT: "*/"> : DEFAULT
-}
-
-<IN_MULTI_LINE_COMMENT> SPECIAL_TOKEN :
-{
- <MULTI_LINE_COMMENT: "*/"> : DEFAULT
-}
-
-<IN_SINGLE_LINE_COMMENT, IN_FORMAL_COMMENT, IN_MULTI_LINE_COMMENT> MORE :
-{
- <~[]>
-}
-
-TOKEN :
-{
- <ABSTRACT: "abstract">
- | <ASSERT: "assert">
- | <BOOLEAN: "boolean">
- | <BREAK: "break">
- | <BYTE: "byte">
- | <CASE: "case">
- | <CATCH: "catch">
- | <CHAR: "char">
- | <CLASS: "class">
- | <CONST: "const">
- | <CONTINUE: "continue">
- | <_DEFAULT: "default">
- | <DO: "do">
- | <DOUBLE: "double">
- | <ELSE: "else">
- | <ENUM: "enum">
- | <EXTENDS: "extends">
- | <FALSE: "false">
- | <FINAL: "final">
- | <FINALLY: "finally">
- | <FLOAT: "float">
- | <FOR: "for">
- | <GOTO: "goto">
- | <IF: "if">
- | <IMPLEMENTS: "implements">
- | <IMPORT: "import">
- | <INSTANCEOF: "instanceof">
- | <INT: "int">
- | <INTERFACE: "interface">
- | <LONG: "long">
- | <NATIVE: "native">
- | <NEW: "new">
- | <NULL: "null">
- | <PACKAGE: "package">
- | <PRIVATE: "private">
- | <PROTECTED: "protected">
- | <PUBLIC: "public">
- | <RETURN: "return">
- | <SHORT: "short">
- | <STATIC: "static">
- | <STRICTFP: "strictfp">
- | <SUPER: "super">
- | <SWITCH: "switch">
- | <SYNCHRONIZED: "synchronized">
- | <THIS: "this">
- | <THROW: "throw">
- | <THROWS: "throws">
- | <TRANSIENT: "transient">
- | <TRUE: "true">
- | <TRY: "try">
- | <VOID: "void">
- | <VOLATILE: "volatile">
- | <WHILE: "while">
-}
-
-TOKEN :
-{
- <INTEGER_LITERAL: <DECIMAL_LITERAL> (["l", "L"])? |
<HEX_LITERAL> (["l", "L"])? | <OCTAL_LITERAL>
(["l", "L"])?>
- | <#DECIMAL_LITERAL: ["1"-"9"]
(["0"-"9"])*>
- | <#HEX_LITERAL: "0" ["x", "X"]
(["0"-"9", "a"-"f",
"A"-"F"])+>
- | <#OCTAL_LITERAL: "0" (["0"-"7"])*>
- | <FLOATING_POINT_LITERAL: (["0"-"9"])+ "."
(["0"-"9"])* (<EXPONENT>)? (["f", "F",
"d", "D"])? | "." (["0"-"9"])+
(<EXPONENT>)? (["f", "F", "d", "D"])? |
(["0"-"9"])+ <EXPONENT> (["f", "F",
"d", "D"])? | (["0"-"9"])+ (<EXPONENT>)?
["f", "F", "d", "D"]>
- | <#EXPONENT: ["e", "E"] (["+", "-"])?
(["0"-"9"])+>
- | <CHARACTER_LITERAL: "'" ((~["'", "\\",
"\n", "\r"]) | ("\\" (["n", "t",
"b", "r", "f", "\\", "'",
"\""] | ["0"-"7"] (["0"-"7"])? |
["0"-"3"] ["0"-"7"]
["0"-"7"]))) "'">
- | <STRING_LITERAL: "\"" ((~["\"", "\\",
"\n", "\r"]) | ("\\" (["n", "t",
"b", "r", "f", "\\", "'",
"\""] | ["0"-"7"] (["0"-"7"])? |
["0"-"3"] ["0"-"7"]
["0"-"7"])))* "\"">
-}
-
-TOKEN :
-{
- <IDENTIFIER: <LETTER> (<LETTER> | <DIGIT>)*>
- | <#LETTER: ["$", "A"-"Z", "_",
"a"-"z", "\u00c0"-"\u00d6",
"\u00d8"-"\u00f6", "\u00f8"-"\u00ff",
"\u0100"-"\u1fff", "\u3040"-"\u318f",
"\u3300"-"\u337f", "\u3400"-"\u3d2d",
"\u4e00"-"\u9fff", "\uf900"-"\ufaff"]>
- | <#DIGIT: ["0"-"9", "\u0660"-"\u0669",
"\u06f0"-"\u06f9", "\u0966"-"\u096f",
"\u09e6"-"\u09ef", "\u0a66"-"\u0a6f",
"\u0ae6"-"\u0aef", "\u0b66"-"\u0b6f",
"\u0be7"-"\u0bef", "\u0c66"-"\u0c6f",
"\u0ce6"-"\u0cef", "\u0d66"-"\u0d6f",
"\u0e50"-"\u0e59", "\u0ed0"-"\u0ed9",
"\u1040"-"\u1049"]>
-}
-
-TOKEN :
-{
- <LPAREN: "(">
- | <RPAREN: ")">
- | <LBRACE: "{">
- | <RBRACE: "}">
- | <LBRACKET: "[">
- | <RBRACKET: "]">
- | <SEMICOLON: ";">
- | <COMMA: ",">
- | <DOT: ".">
- | <AT: "@">
-}
-
-TOKEN :
-{
- <ASSIGN: "=">
- | <LT: "<">
- | <BANG: "!">
- | <TILDE: "~">
- | <HOOK: "?">
- | <COLON: ":">
- | <EQ: "==">
- | <LE: "<=">
- | <GE: ">=">
- | <NE: "!=">
- | <SC_OR: "||">
- | <SC_AND: "&&">
- | <INCR: "++">
- | <DECR: "--">
- | <PLUS: "+">
- | <MINUS: "-">
- | <STAR: "*">
- | <SLASH: "/">
- | <BIT_AND: "&">
- | <BIT_OR: "|">
- | <XOR: "^">
- | <REM: "%">
- | <LSHIFT: "<<">
- | <PLUSASSIGN: "+=">
- | <MINUSASSIGN: "-=">
- | <STARASSIGN: "*=">
- | <SLASHASSIGN: "/=">
- | <ANDASSIGN: "&=">
- | <ORASSIGN: "|=">
- | <XORASSIGN: "^=">
- | <REMASSIGN: "%=">
- | <LSHIFTASSIGN: "<<=">
- | <RSIGNEDSHIFTASSIGN: ">>=">
- | <RUNSIGNEDSHIFTASSIGN: ">>>=">
- | <ELLIPSIS: "...">
-}
-
-AnnotationsUnit AnnotationsUnit() :
-{
- NodeOptional n0 = new NodeOptional();
- NodeSequence n1;
- Annotation n2;
- NodeListOptional n3;
- NodeSequence n4;
- NodeToken n5;
- Token n6;
- Annotation n7;
-
-
-}
-{
- (
- { n3 = new NodeListOptional(); }
- { n1 = new NodeSequence(2); }
- n2=Annotation()
- { n1.addNode(n2); }
- (
- { n4 = new NodeSequence(2); }
- n6="," { n5 = JTBToolkit.makeNodeToken(n6); }
- { n4.addNode(n5); }
- n7=Annotation()
- { n4.addNode(n7); }
- { n3.addNode(n4); }
- )*
- { n3.nodes.trimToSize(); }
- { n1.addNode(n3); }
- { n0.addNode(n1); }
- )?
-
- { return new AnnotationsUnit(n0); }
-}
-
-PrimitiveType PrimitiveType() :
-{
- NodeChoice n0;
- NodeToken n1;
- Token n2;
- NodeToken n3;
- Token n4;
- NodeToken n5;
- Token n6;
- NodeToken n7;
- Token n8;
- NodeToken n9;
- Token n10;
- NodeToken n11;
- Token n12;
- NodeToken n13;
- Token n14;
- NodeToken n15;
- Token n16;
-
-
-}
-{
- (
- n2="boolean" { n1 = JTBToolkit.makeNodeToken(n2); }
- { n0 = new NodeChoice(n1, 0); }
- |
- n4="char" { n3 = JTBToolkit.makeNodeToken(n4); }
- { n0 = new NodeChoice(n3, 1); }
- |
- n6="byte" { n5 = JTBToolkit.makeNodeToken(n6); }
- { n0 = new NodeChoice(n5, 2); }
- |
- n8="short" { n7 = JTBToolkit.makeNodeToken(n8); }
- { n0 = new NodeChoice(n7, 3); }
- |
- n10="int" { n9 = JTBToolkit.makeNodeToken(n10); }
- { n0 = new NodeChoice(n9, 4); }
- |
- n12="long" { n11 = JTBToolkit.makeNodeToken(n12); }
- { n0 = new NodeChoice(n11, 5); }
- |
- n14="float" { n13 = JTBToolkit.makeNodeToken(n14); }
- { n0 = new NodeChoice(n13, 6); }
- |
- n16="double" { n15 = JTBToolkit.makeNodeToken(n16); }
- { n0 = new NodeChoice(n15, 7); }
- )
-
- { return new PrimitiveType(n0); }
-}
-
-Name Name() :
-{
- NodeToken n0;
- Token n1;
- NodeListOptional n2 = new NodeListOptional();
- NodeSequence n3;
- NodeToken n4;
- Token n5;
- NodeToken n6;
- Token n7;
-
-
-}
-{
- n1=<IDENTIFIER> { n0 = JTBToolkit.makeNodeToken(n1); }
- (
- { n3 = new NodeSequence(2); }
- n5="." { n4 = JTBToolkit.makeNodeToken(n5); }
- { n3.addNode(n4); }
- n7=<IDENTIFIER> { n6 = JTBToolkit.makeNodeToken(n7); }
- { n3.addNode(n6); }
- { n2.addNode(n3); }
- )*
- { n2.nodes.trimToSize(); }
-
- { return new Name(n0,n2); }
-}
-
-Literal Literal() :
-{
- NodeChoice n0;
- NodeToken n1;
- Token n2;
- NodeToken n3;
- Token n4;
- NodeToken n5;
- Token n6;
- NodeToken n7;
- Token n8;
- BooleanLiteral n9;
- NullLiteral n10;
-
-
-}
-{
- (
- n2=<INTEGER_LITERAL> { n1 = JTBToolkit.makeNodeToken(n2); }
- { n0 = new NodeChoice(n1, 0); }
- |
- n4=<FLOATING_POINT_LITERAL> { n3 = JTBToolkit.makeNodeToken(n4); }
- { n0 = new NodeChoice(n3, 1); }
- |
- n6=<CHARACTER_LITERAL> { n5 = JTBToolkit.makeNodeToken(n6); }
- { n0 = new NodeChoice(n5, 2); }
- |
- n8=<STRING_LITERAL> { n7 = JTBToolkit.makeNodeToken(n8); }
- { n0 = new NodeChoice(n7, 3); }
- |
- n9=BooleanLiteral()
- { n0 = new NodeChoice(n9, 4); }
- |
- n10=NullLiteral()
- { n0 = new NodeChoice(n10, 5); }
- )
-
- { return new Literal(n0); }
-}
-
-BooleanLiteral BooleanLiteral() :
-{
- NodeChoice n0;
- NodeToken n1;
- Token n2;
- NodeToken n3;
- Token n4;
-
-
-}
-{
- (
- n2="true" { n1 = JTBToolkit.makeNodeToken(n2); }
- { n0 = new NodeChoice(n1, 0); }
- |
- n4="false" { n3 = JTBToolkit.makeNodeToken(n4); }
- { n0 = new NodeChoice(n3, 1); }
- )
-
- { return new BooleanLiteral(n0); }
-}
-
-NullLiteral NullLiteral() :
-{
- NodeToken n0;
- Token n1;
-
-
-}
-{
- n1="null" { n0 = JTBToolkit.makeNodeToken(n1); }
-
- { return new NullLiteral(n0); }
-}
-
-Annotation Annotation() :
-{
- NodeChoice n0;
- NormalAnnotation n1;
- SingleMemberAnnotation n2;
- MarkerAnnotation n3;
-
-
-}
-{
- (
- LOOKAHEAD("@" Name() "(" ( <IDENTIFIER> "=" |
")" ))
- n1=NormalAnnotation()
- { n0 = new NodeChoice(n1, 0); }
- |
- LOOKAHEAD("@" Name() "(")
- n2=SingleMemberAnnotation()
- { n0 = new NodeChoice(n2, 1); }
- |
- n3=MarkerAnnotation()
- { n0 = new NodeChoice(n3, 2); }
- )
-
- { return new Annotation(n0); }
-}
-
-NormalAnnotation NormalAnnotation() :
-{
- NodeToken n0;
- Token n1;
- Name n2;
- NodeToken n3;
- Token n4;
- NodeOptional n5 = new NodeOptional();
- MemberValuePairs n6;
- NodeToken n7;
- Token n8;
-
-
-}
-{
- n1="@" { n0 = JTBToolkit.makeNodeToken(n1); }
- n2=Name()
- n4="(" { n3 = JTBToolkit.makeNodeToken(n4); }
- (
- n6=MemberValuePairs()
- { n5.addNode(n6); }
- )?
- n8=")" { n7 = JTBToolkit.makeNodeToken(n8); }
-
- { return new NormalAnnotation(n0,n2,n3,n5,n7); }
-}
-
-MarkerAnnotation MarkerAnnotation() :
-{
- NodeToken n0;
- Token n1;
- Name n2;
-
-
-}
-{
- n1="@" { n0 = JTBToolkit.makeNodeToken(n1); }
- n2=Name()
-
- { return new MarkerAnnotation(n0,n2); }
-}
-
-SingleMemberAnnotation SingleMemberAnnotation() :
-{
- NodeToken n0;
- Token n1;
- Name n2;
- NodeToken n3;
- Token n4;
- MemberValue n5;
- NodeToken n6;
- Token n7;
-
-
-}
-{
- n1="@" { n0 = JTBToolkit.makeNodeToken(n1); }
- n2=Name()
- n4="(" { n3 = JTBToolkit.makeNodeToken(n4); }
- n5=MemberValue()
- n7=")" { n6 = JTBToolkit.makeNodeToken(n7); }
-
- { return new SingleMemberAnnotation(n0,n2,n3,n5,n6); }
-}
-
-MemberValuePairs MemberValuePairs() :
-{
- MemberValuePair n0;
- NodeListOptional n1 = new NodeListOptional();
- NodeSequence n2;
- NodeToken n3;
- Token n4;
- MemberValuePair n5;
-
-
-}
-{
- n0=MemberValuePair()
- (
- { n2 = new NodeSequence(2); }
- n4="," { n3 = JTBToolkit.makeNodeToken(n4); }
- { n2.addNode(n3); }
- n5=MemberValuePair()
- { n2.addNode(n5); }
- { n1.addNode(n2); }
- )*
- { n1.nodes.trimToSize(); }
-
- { return new MemberValuePairs(n0,n1); }
-}
-
-MemberValuePair MemberValuePair() :
-{
- NodeToken n0;
- Token n1;
- NodeToken n2;
- Token n3;
- MemberValue n4;
-
-
-}
-{
- n1=<IDENTIFIER> { n0 = JTBToolkit.makeNodeToken(n1); }
- n3="=" { n2 = JTBToolkit.makeNodeToken(n3); }
- n4=MemberValue()
-
- { return new MemberValuePair(n0,n2,n4); }
-}
-
-MemberValue MemberValue() :
-{
- NodeChoice n0;
- Annotation n1;
- MemberValueArrayInitializer n2;
- Literal n3;
-
-
-}
-{
- (
- n1=Annotation()
- { n0 = new NodeChoice(n1, 0); }
- |
- n2=MemberValueArrayInitializer()
- { n0 = new NodeChoice(n2, 1); }
- |
- n3=Literal()
- { n0 = new NodeChoice(n3, 2); }
- )
-
- { return new MemberValue(n0); }
-}
-
-MemberValueArrayInitializer MemberValueArrayInitializer() :
-{
- NodeToken n0;
- Token n1;
- MemberValue n2;
- NodeListOptional n3 = new NodeListOptional();
- NodeSequence n4;
- NodeToken n5;
- Token n6;
- MemberValue n7;
- NodeOptional n8 = new NodeOptional();
- NodeToken n9;
- Token n10;
- NodeToken n11;
- Token n12;
-
-
-}
-{
- n1="{" { n0 = JTBToolkit.makeNodeToken(n1); }
- n2=MemberValue()
- (
- LOOKAHEAD(2)
- { n4 = new NodeSequence(2); }
- n6="," { n5 = JTBToolkit.makeNodeToken(n6); }
- { n4.addNode(n5); }
- n7=MemberValue()
- { n4.addNode(n7); }
- { n3.addNode(n4); }
- )*
- { n3.nodes.trimToSize(); }
- (
- n10="," { n9 = JTBToolkit.makeNodeToken(n10); }
- { n8.addNode(n9); }
- )?
- n12="}" { n11 = JTBToolkit.makeNodeToken(n12); }
-
- { return new MemberValueArrayInitializer(n0,n2,n3,n8,n11); }
-}