You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@labs.apache.org by ad...@apache.org on 2007/05/15 17:30:05 UTC

svn commit: r538217 [1/10] - in /labs/dungeon/trunk: ./ asn1-compiler/ asn1-compiler/src/ asn1-compiler/src/main/ asn1-compiler/src/main/antlr/ asn1-compiler/src/main/java/ asn1-compiler/src/main/java/org/ asn1-compiler/src/main/java/org/apache/ asn1-c...

Author: adc
Date: Tue May 15 08:29:41 2007
New Revision: 538217

URL: http://svn.apache.org/viewvc?view=rev&rev=538217
Log:
New home\!

Added:
    labs/dungeon/trunk/LICENSE.txt
    labs/dungeon/trunk/asn1-compiler/
    labs/dungeon/trunk/asn1-compiler/LICENSE.txt
    labs/dungeon/trunk/asn1-compiler/pom.xml
    labs/dungeon/trunk/asn1-compiler/src/
    labs/dungeon/trunk/asn1-compiler/src/main/
    labs/dungeon/trunk/asn1-compiler/src/main/antlr/
    labs/dungeon/trunk/asn1-compiler/src/main/antlr/asn1.g
    labs/dungeon/trunk/asn1-compiler/src/main/java/
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/Compiler.java
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/ProcessException.java
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/Stage.java
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/codegen/
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/codegen/CodeGenerator.java
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/codegen/CodeGeneratorFinder.java
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/codegen/CodeGeneratorStage.java
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/parser/
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/parser/Environment.java
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/parser/ParseException.java
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/parser/ParseStage.java
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/parser/TokenBase.java
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/parser/primitive/
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/parser/primitive/BooleanPrimitive.java
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/parser/primitive/IntegerPrimitive.java
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/parser/primitive/Primitive.java
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/parser/x680/
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/parser/x680/Assignment.java
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/parser/x680/BitStringType.java
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/parser/x680/BooleanType.java
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/parser/x680/ComponentType.java
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/parser/x680/ComponentTypeEnum.java
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/parser/x680/ComponentTypeList.java
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/parser/x680/ComponentTypeLists.java
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/parser/x680/ConstrainedType.java
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/parser/x680/Constraint.java
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/parser/x680/ConstraintSpec.java
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/parser/x680/DefinedType.java
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/parser/x680/DefinitiveIdentifier.java
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/parser/x680/IntegerType.java
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/parser/x680/Module.java
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/parser/x680/ModuleIdentifier.java
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/parser/x680/ModuleReference.java
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/parser/x680/NamedType.java
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/parser/x680/ObjectIdentifier.java
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/parser/x680/OctetStringType.java
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/parser/x680/Reference.java
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/parser/x680/ReferencedType.java
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/parser/x680/SequenceOfType.java
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/parser/x680/SequenceType.java
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/parser/x680/SubtypeConstraintSpec.java
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/parser/x680/Tag.java
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/parser/x680/TagDefaultEnum.java
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/parser/x680/Type.java
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/parser/x680/TypeAssignment.java
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/parser/x680/TypeReference.java
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/parser/x680/Value.java
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/parser/x680/ValueAssignment.java
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/parser/x680/ValueReference.java
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/parser/x680/element/
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/parser/x680/element/Element.java
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/parser/x680/element/ElementSetSpec.java
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/parser/x680/element/Intersection.java
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/parser/x680/element/LowerEndpoint.java
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/parser/x680/element/Union.java
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/parser/x680/element/UpperEndpoint.java
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/parser/x680/element/ValueRange.java
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/parser/x681/
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/parser/x683/
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/snickers/
    labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/snickers/asn1/
    labs/dungeon/trunk/asn1-compiler/src/main/resources/
    labs/dungeon/trunk/asn1-compiler/src/main/resources/vm/
    labs/dungeon/trunk/asn1-compiler/src/main/resources/vm/class.vm
    labs/dungeon/trunk/asn1-compiler/src/main/resources/vm/copyright.vm
    labs/dungeon/trunk/asn1-compiler/src/test/
    labs/dungeon/trunk/asn1-compiler/src/test/java/
    labs/dungeon/trunk/asn1-compiler/src/test/java/org/
    labs/dungeon/trunk/asn1-compiler/src/test/java/org/apache/
    labs/dungeon/trunk/asn1-compiler/src/test/java/org/apache/asn1/
    labs/dungeon/trunk/asn1-compiler/src/test/java/org/apache/asn1/compiler/
    labs/dungeon/trunk/asn1-compiler/src/test/java/org/apache/asn1/compiler/CompilerTest.java
    labs/dungeon/trunk/asn1-compiler/src/test/java/org/apache/asn1/compiler/stages/
    labs/dungeon/trunk/asn1-compiler/src/test/java/org/apache/asn1/compiler/stages/codegen/
    labs/dungeon/trunk/asn1-compiler/src/test/java/org/apache/asn1/compiler/stages/parser/
    labs/dungeon/trunk/asn1-compiler/src/test/java/org/apache/asn1/compiler/stages/parser/ASN1SyntaxTest.java
    labs/dungeon/trunk/asn1-compiler/src/test/resources/
    labs/dungeon/trunk/asn1-compiler/src/test/resources/META-INF/
    labs/dungeon/trunk/asn1-compiler/src/test/resources/NBAP-25433-530.asn1
    labs/dungeon/trunk/asn1-compiler/src/test/resources/SPNEGO.asn1
    labs/dungeon/trunk/asn1-compiler/src/test/resources/ldap.asn1
    labs/dungeon/trunk/asn1-gen-c/
    labs/dungeon/trunk/asn1-gen-c/LICENSE.txt
    labs/dungeon/trunk/asn1-gen-c/pom.xml
    labs/dungeon/trunk/asn1-gen-c/src/
    labs/dungeon/trunk/asn1-gen-c/src/main/
    labs/dungeon/trunk/asn1-gen-c/src/main/java/
    labs/dungeon/trunk/asn1-gen-c/src/main/java/org/
    labs/dungeon/trunk/asn1-gen-c/src/main/java/org/apache/
    labs/dungeon/trunk/asn1-gen-c/src/main/java/org/apache/asn1/
    labs/dungeon/trunk/asn1-gen-c/src/main/java/org/apache/asn1/gen/
    labs/dungeon/trunk/asn1-gen-c/src/main/java/org/apache/asn1/gen/c/
    labs/dungeon/trunk/asn1-gen-c/src/test/
    labs/dungeon/trunk/asn1-gen-c/src/test/java/
    labs/dungeon/trunk/asn1-gen-c/src/test/java/org/
    labs/dungeon/trunk/asn1-gen-c/src/test/java/org/apache/
    labs/dungeon/trunk/asn1-gen-c/src/test/java/org/apache/asn1/
    labs/dungeon/trunk/asn1-gen-c/src/test/java/org/apache/asn1/gen/
    labs/dungeon/trunk/asn1-gen-c/src/test/java/org/apache/asn1/gen/c/
    labs/dungeon/trunk/asn1-gen-cplus/
    labs/dungeon/trunk/asn1-gen-cplus/LICENSE.txt
    labs/dungeon/trunk/asn1-gen-cplus/pom.xml
    labs/dungeon/trunk/asn1-gen-cplus/src/
    labs/dungeon/trunk/asn1-gen-cplus/src/main/
    labs/dungeon/trunk/asn1-gen-cplus/src/main/java/
    labs/dungeon/trunk/asn1-gen-cplus/src/main/java/org/
    labs/dungeon/trunk/asn1-gen-cplus/src/main/java/org/apache/
    labs/dungeon/trunk/asn1-gen-cplus/src/main/java/org/apache/asn1/
    labs/dungeon/trunk/asn1-gen-cplus/src/main/java/org/apache/asn1/gen/
    labs/dungeon/trunk/asn1-gen-cplus/src/main/java/org/apache/asn1/gen/cplus/
    labs/dungeon/trunk/asn1-gen-cplus/src/test/
    labs/dungeon/trunk/asn1-gen-cplus/src/test/java/
    labs/dungeon/trunk/asn1-gen-cplus/src/test/java/org/
    labs/dungeon/trunk/asn1-gen-cplus/src/test/java/org/apache/
    labs/dungeon/trunk/asn1-gen-cplus/src/test/java/org/apache/asn1/
    labs/dungeon/trunk/asn1-gen-cplus/src/test/java/org/apache/asn1/gen/
    labs/dungeon/trunk/asn1-gen-cplus/src/test/java/org/apache/asn1/gen/cplus/
    labs/dungeon/trunk/asn1-gen-csharp/
    labs/dungeon/trunk/asn1-gen-csharp/LICENSE.txt
    labs/dungeon/trunk/asn1-gen-csharp/pom.xml
    labs/dungeon/trunk/asn1-gen-csharp/src/
    labs/dungeon/trunk/asn1-gen-csharp/src/main/
    labs/dungeon/trunk/asn1-gen-csharp/src/main/java/
    labs/dungeon/trunk/asn1-gen-csharp/src/main/java/org/
    labs/dungeon/trunk/asn1-gen-csharp/src/main/java/org/apache/
    labs/dungeon/trunk/asn1-gen-csharp/src/main/java/org/apache/asn1/
    labs/dungeon/trunk/asn1-gen-csharp/src/main/java/org/apache/asn1/gen/
    labs/dungeon/trunk/asn1-gen-csharp/src/main/java/org/apache/asn1/gen/csharp/
    labs/dungeon/trunk/asn1-gen-csharp/src/test/
    labs/dungeon/trunk/asn1-gen-csharp/src/test/java/
    labs/dungeon/trunk/asn1-gen-csharp/src/test/java/org/
    labs/dungeon/trunk/asn1-gen-csharp/src/test/java/org/apache/
    labs/dungeon/trunk/asn1-gen-csharp/src/test/java/org/apache/asn1/
    labs/dungeon/trunk/asn1-gen-csharp/src/test/java/org/apache/asn1/gen/
    labs/dungeon/trunk/asn1-gen-csharp/src/test/java/org/apache/asn1/gen/csharp/
    labs/dungeon/trunk/asn1-gen-java/
    labs/dungeon/trunk/asn1-gen-java/LICENSE.txt
    labs/dungeon/trunk/asn1-gen-java/pom.xml
    labs/dungeon/trunk/asn1-gen-java/src/
    labs/dungeon/trunk/asn1-gen-java/src/main/
    labs/dungeon/trunk/asn1-gen-java/src/main/java/
    labs/dungeon/trunk/asn1-gen-java/src/main/java/org/
    labs/dungeon/trunk/asn1-gen-java/src/main/java/org/apache/
    labs/dungeon/trunk/asn1-gen-java/src/main/java/org/apache/asn1/
    labs/dungeon/trunk/asn1-gen-java/src/main/java/org/apache/asn1/gen/
    labs/dungeon/trunk/asn1-gen-java/src/main/java/org/apache/asn1/gen/java/
    labs/dungeon/trunk/asn1-gen-java/src/test/
    labs/dungeon/trunk/asn1-gen-java/src/test/java/
    labs/dungeon/trunk/asn1-gen-java/src/test/java/org/
    labs/dungeon/trunk/asn1-gen-java/src/test/java/org/apache/
    labs/dungeon/trunk/asn1-gen-java/src/test/java/org/apache/asn1/
    labs/dungeon/trunk/asn1-gen-java/src/test/java/org/apache/asn1/gen/
    labs/dungeon/trunk/asn1-gen-java/src/test/java/org/apache/asn1/gen/java/
    labs/dungeon/trunk/asn1-maven-plugin/
    labs/dungeon/trunk/asn1-maven-plugin/pom.xml
    labs/dungeon/trunk/asn1-maven-plugin/src/
    labs/dungeon/trunk/asn1-maven-plugin/src/main/
    labs/dungeon/trunk/asn1-maven-plugin/src/main/java/
    labs/dungeon/trunk/asn1-maven-plugin/src/main/java/org/
    labs/dungeon/trunk/asn1-maven-plugin/src/main/java/org/apache/
    labs/dungeon/trunk/asn1-maven-plugin/src/main/java/org/apache/asn1/
    labs/dungeon/trunk/asn1-maven-plugin/src/main/java/org/apache/asn1/plugin/
    labs/dungeon/trunk/asn1-maven-plugin/src/main/java/org/apache/asn1/plugin/ASN1Mojo.java
    labs/dungeon/trunk/asn1-maven-plugin/src/site/
    labs/dungeon/trunk/asn1-maven-plugin/src/site/apt/
    labs/dungeon/trunk/asn1-maven-plugin/src/site/apt/index.apt
    labs/dungeon/trunk/asn1-maven-plugin/src/site/site.xml
    labs/dungeon/trunk/asn1-runtime/
    labs/dungeon/trunk/asn1-runtime/LICENSE.txt
    labs/dungeon/trunk/asn1-runtime/pom.xml
    labs/dungeon/trunk/asn1-runtime/src/
    labs/dungeon/trunk/asn1-runtime/src/main/
    labs/dungeon/trunk/asn1-runtime/src/main/java/
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/encoding/
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/encoding/Decoder.java
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/encoding/DecoderException.java
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/encoding/Encoder.java
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/encoding/EncoderException.java
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/encoding/EncodingFactory.java
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/encoding/EncodingFactoryDefault.java
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/encoding/ber/
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/encoding/ber/AOKDecoder.java
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/encoding/ber/ASN1BitStringDecoder.java
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/encoding/ber/ASN1BitStringEncoder.java
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/encoding/ber/ASN1ObjectIdentifierEncoder.java
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/encoding/ber/ASN1OctetStringDecoder.java
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/encoding/ber/ASN1OctetStringEncoder.java
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/encoding/ber/BERDecoder.java
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/encoding/ber/BERDecoderCallbackAdapter.java
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/encoding/ber/BERDecoderMonitor.java
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/encoding/ber/BEREncoder.java
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/encoding/ber/BERInputStream.java
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/encoding/ber/BEROutputStream.java
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/encoding/ber/Decoder.java
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/encoding/ber/DecoderCallback.java
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/encoding/ber/DecoderMonitor.java
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/encoding/ber/DecoderMonitorAdapter.java
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/encoding/ber/Length.java
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/encoding/ber/Tag.java
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/encoding/ber/Tuple.java
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/encoding/ber/TupleNode.java
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/encoding/ber/TupleStack.java
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/encoding/ber/TypeClass.java
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/encoding/ber/Util.java
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/encoding/ber/package.html
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/encoding/cer/
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/encoding/der/
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/encoding/der/DERDecoder.java
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/encoding/der/DERDecoderCallbackAdapter.java
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/encoding/der/DERDecoderMonitor.java
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/encoding/der/package.html
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/encoding/per/
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/runtime/
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/runtime/ASN1BMPString.java
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/runtime/ASN1BitString.java
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/runtime/ASN1GeneralString.java
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/runtime/ASN1GraphicString.java
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/runtime/ASN1IA5String.java
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/runtime/ASN1NumericString.java
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/runtime/ASN1ObjectIdentifier.java
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/runtime/ASN1OctetString.java
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/runtime/ASN1PrintableString.java
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/runtime/ASN1SequenceOf.java
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/runtime/ASN1TeletexString.java
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/runtime/ASN1Type.java
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/runtime/ASN1TypeFlag.java
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/runtime/ASN1UniversalString.java
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/runtime/ASN1Util.java
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/runtime/ASN1VideotexString.java
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/runtime/ASN1VisibleString.java
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/runtime/Enum.java
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/runtime/EnumUtils.java
    labs/dungeon/trunk/asn1-runtime/src/main/java/org/apache/asn1/runtime/ValuedEnum.java
    labs/dungeon/trunk/asn1-runtime/src/test/
    labs/dungeon/trunk/asn1-runtime/src/test/java/
    labs/dungeon/trunk/asn1-runtime/src/test/java/com/
    labs/dungeon/trunk/asn1-runtime/src/test/java/com/acme/
    labs/dungeon/trunk/asn1-runtime/src/test/java/com/acme/ldap/
    labs/dungeon/trunk/asn1-runtime/src/test/java/com/acme/spnego/
    labs/dungeon/trunk/asn1-runtime/src/test/java/com/acme/spnego/ContextFlags.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/com/acme/spnego/MechType.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/com/acme/spnego/MechTypeList.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/com/acme/spnego/NegTokenInit.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/com/acme/spnego/NegTokenTarg.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/com/acme/spnego/NegotiationToken.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/spnego/
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/spnego/ber/
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/spnego/ber/ContextFlagsDecoder.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/spnego/ber/ContextFlagsEncoder.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/spnego/ber/MechTypeDecoder.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/spnego/ber/MechTypeEncoder.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/spnego/ber/MechTypeListDecoder.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/spnego/ber/MechTypeListEncoder.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/spnego/ber/NegTokenInitDecoder.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/spnego/ber/NegTokenInitEncoder.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/spnego/ber/NegTokenTargDecoder.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/spnego/ber/NegTokenTargEncoder.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/spnego/ber/NegotiationTokenDecoder.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/spnego/ber/NegotiationTokenEncoder.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/spnego/cer/
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/spnego/cer/ContextFlagsDecoder.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/spnego/cer/ContextFlagsEncoder.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/spnego/cer/MechTypeDecoder.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/spnego/cer/MechTypeEncoder.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/spnego/cer/MechTypeListDecoder.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/spnego/cer/MechTypeListEncoder.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/spnego/cer/NegTokenInitDecoder.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/spnego/cer/NegTokenInitEncoder.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/spnego/cer/NegTokenTargDecoder.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/spnego/cer/NegTokenTargEncoder.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/spnego/cer/NegotiationTokenDecoder.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/spnego/cer/NegotiationTokenEncoder.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/spnego/der/
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/spnego/der/ContextFlagsDecoder.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/spnego/der/ContextFlagsEncoder.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/spnego/der/MechTypeDecoder.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/spnego/der/MechTypeEncoder.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/spnego/der/MechTypeListDecoder.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/spnego/der/MechTypeListEncoder.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/spnego/der/NegTokenInitDecoder.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/spnego/der/NegTokenInitEncoder.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/spnego/der/NegTokenTargDecoder.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/spnego/der/NegTokenTargEncoder.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/spnego/der/NegotiationTokenDecoder.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/spnego/der/NegotiationTokenEncoder.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/spnego/per/
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/spnego/per/ContextFlagsDecoder.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/spnego/per/ContextFlagsEncoder.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/spnego/per/MechTypeDecoder.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/spnego/per/MechTypeEncoder.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/spnego/per/MechTypeListDecoder.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/spnego/per/MechTypeListEncoder.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/spnego/per/NegTokenInitDecoder.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/spnego/per/NegTokenInitEncoder.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/spnego/per/NegTokenTargDecoder.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/spnego/per/NegTokenTargEncoder.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/spnego/per/NegotiationTokenDecoder.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/encoding/com/acme/spnego/per/NegotiationTokenEncoder.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/test/
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/test/encoding/
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/test/encoding/EncodingFactoryTest.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/test/encoding/cer/
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/test/encoding/der/
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/test/encoding/per/
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/test/runtime/
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/test/runtime/ASN1ObjectIdentifierTest.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/types/
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/types/com/
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/types/com/acme/
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/types/com/acme/spnego/
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/types/com/acme/spnego/ContextFlagsType.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/types/com/acme/spnego/MechTypeListType.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/types/com/acme/spnego/MechTypeType.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/types/com/acme/spnego/NegTokenInitType.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/types/com/acme/spnego/NegTokenTargType.java
    labs/dungeon/trunk/asn1-runtime/src/test/java/org/apache/asn1/types/com/acme/spnego/NegotiationTokenType.java
    labs/dungeon/trunk/pom.xml

Added: labs/dungeon/trunk/LICENSE.txt
URL: http://svn.apache.org/viewvc/labs/dungeon/trunk/LICENSE.txt?view=auto&rev=538217
==============================================================================
--- labs/dungeon/trunk/LICENSE.txt (added)
+++ labs/dungeon/trunk/LICENSE.txt Tue May 15 08:29:41 2007
@@ -0,0 +1,203 @@
+
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+

Added: labs/dungeon/trunk/asn1-compiler/LICENSE.txt
URL: http://svn.apache.org/viewvc/labs/dungeon/trunk/asn1-compiler/LICENSE.txt?view=auto&rev=538217
==============================================================================
--- labs/dungeon/trunk/asn1-compiler/LICENSE.txt (added)
+++ labs/dungeon/trunk/asn1-compiler/LICENSE.txt Tue May 15 08:29:41 2007
@@ -0,0 +1,203 @@
+
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+

Added: labs/dungeon/trunk/asn1-compiler/pom.xml
URL: http://svn.apache.org/viewvc/labs/dungeon/trunk/asn1-compiler/pom.xml?view=auto&rev=538217
==============================================================================
--- labs/dungeon/trunk/asn1-compiler/pom.xml (added)
+++ labs/dungeon/trunk/asn1-compiler/pom.xml Tue May 15 08:29:41 2007
@@ -0,0 +1,84 @@
+<project>
+
+    <parent>
+        <groupId>org.apache.asn1</groupId>
+        <artifactId>asn1-root</artifactId>
+        <version>1.0-SNAPSHOT</version>
+    </parent>
+
+    <modelVersion>4.0.0</modelVersion>
+    <groupId>org.apache.asn1</groupId>
+    <artifactId>asn1-compiler</artifactId>
+    <name>Apache ASN1 Compiler :: compiler</name>
+    <packaging>jar</packaging>
+
+    <build>
+
+        <plugins>
+
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-antlr-plugin</artifactId>
+                <configuration>
+                    <grammars>asn1.g</grammars>
+                </configuration>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>generate</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-surefire-plugin</artifactId>
+                <configuration>
+                    <includes>
+                        <include implementation="java.lang.String">**/*Test.java</include>
+                    </includes>
+                </configuration>
+            </plugin>
+
+        </plugins>
+
+    </build>
+
+    <dependencies>
+
+        <dependency>
+            <groupId>antlr</groupId>
+            <artifactId>antlr</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.asn1</groupId>
+            <artifactId>asn1-runtime</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.velocity</groupId>
+            <artifactId>velocity</artifactId>
+        </dependency>
+
+    </dependencies>
+
+    <reporting>
+        <plugins>
+            <plugin>
+                <artifactId>maven-checkstyle-plugin</artifactId>
+            </plugin>
+            <plugin>
+                <artifactId>maven-clover-plugin</artifactId>
+            </plugin>
+            <plugin>
+                <artifactId>maven-pmd-plugin</artifactId>
+            </plugin>
+            <plugin>
+                <artifactId>maven-project-info-reports-plugin</artifactId>
+            </plugin>
+        </plugins>
+    </reporting>
+
+</project>

Added: labs/dungeon/trunk/asn1-compiler/src/main/antlr/asn1.g
URL: http://svn.apache.org/viewvc/labs/dungeon/trunk/asn1-compiler/src/main/antlr/asn1.g?view=auto&rev=538217
==============================================================================
--- labs/dungeon/trunk/asn1-compiler/src/main/antlr/asn1.g (added)
+++ labs/dungeon/trunk/asn1-compiler/src/main/antlr/asn1.g Tue May 15 08:29:41 2007
@@ -0,0 +1,593 @@
+header {
+/**
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.asn1.compiler.parser;
+
+import java.util.*;
+import org.apache.asn1.compiler.stages.parser.*;
+import org.apache.asn1.compiler.stages.parser.primitive.*;
+import org.apache.asn1.compiler.stages.parser.x680.*;
+import org.apache.asn1.compiler.stages.parser.x680.element.*;
+}
+
+class ASN1Parser extends Parser;
+options {
+    k=5;
+}
+
+tokens {
+    REAL_NUMBER;
+    INTEGER_NUMBER;
+}
+
+compile returns [Environment environment]
+{
+    Module module;
+    environment = new Environment();
+}
+    : (module = module_definition { environment.addModule(module); })+ ;
+
+/*
+ * X.680-0207
+ */
+module_definition returns [Module module]
+{
+    module = new Module();
+    ModuleIdentifier id;
+}
+    : id=module_identifier { module.setModuleIdentifier(id); }
+      DEFINITIONS
+      (tag_default[module])?
+      (extension_default[module])?
+      ASSIGNMENT BEGIN module_body[module] END
+    ;
+
+module_identifier returns [ModuleIdentifier id]
+{
+    ModuleReference mr;
+    DefinitiveIdentifier did;
+    id = new ModuleIdentifier();
+}
+    : mr=module_reference { id.setModuleReference(mr); } (did=definative_identifier { id.setDefinitiveIdentifier(did); } )?
+    ;
+
+definative_identifier returns [DefinitiveIdentifier id]
+{ id = new DefinitiveIdentifier(); }
+    : LEFT_CURLY (definitive_obj_id_component[id])+ RIGHT_CURLY
+    ;
+
+definitive_obj_id_component[DefinitiveIdentifier id]
+    : s1:IDENTIFIER { id.addNameForm(s1); }
+    | n1:INTEGER_NUMBER { id.addNumberForm(new IntegerPrimitive(n1)); }
+    | s2:IDENTIFIER LEFT_PAREN n2:INTEGER_NUMBER RIGHT_PAREN  { id.addNameAndNumberForm(s2, new IntegerPrimitive(n2)); }
+    ;
+
+tag_default[Module module]
+    : EXPLICIT TAGS { module.setTagDefault(TagDefaultEnum.EXPLICIT); }
+    | IMPLICIT TAGS { module.setTagDefault(TagDefaultEnum.IMPLICIT); }
+    | AUTOMATIC TAGS { module.setTagDefault(TagDefaultEnum.AUTOMATIC); }
+    ;
+
+extension_default[Module module]
+    : EXTENSIBILITY IMPLIED { module.setExtensibilityImplied(true); }
+    ;
+
+module_body[Module module]
+    : (assignment[module])+
+    ;
+
+assignment[Module module]
+{
+    TypeAssignment ta;
+    ValueAssignment va;
+}
+    : ta=type_assignment { module.addTypeAssignment(ta); }
+    | va=value_assignment { module.addValueAssignment(va); }
+    ;
+
+type_assignment returns [TypeAssignment ta]
+{
+    ta = new TypeAssignment();
+    Type t;
+}
+    : tr:TYPEREFERENCE { ta.setTypeReference(new TypeReference(tr)); } ASSIGNMENT t=type { ta.setType(t); }
+    ;
+
+type_assignment_test returns [TypeAssignment ta] { ta = null; } : ta=type_assignment ;
+
+type returns [Type type]
+{
+    Type t;
+    ConstrainedType ct;
+    Constraint c;
+    type = null;
+}
+    : t=builtin_type { type = t; } (c=constraint { ct = new ConstrainedType(); ct.setType(t); ct.setConstraint(c); type=ct; })?
+    | type=referenced_type
+    ;
+
+builtin_type returns [Type type]
+{ type = null; }
+    : type=bitstring_type
+    | type=boolean_type
+    | type=octet_string_type
+    | type=sequence_type
+    | type=sequence_of_type
+    | type=integer_type
+    ;
+
+bitstring_type returns [BitStringType bitStringType]
+{ bitStringType = new BitStringType(); }
+    : BIT STRING (LEFT_CURLY namedbit (COMMA namedbit)+ RIGHT_CURLY)?
+    ;
+
+namedbit
+    : IDENTIFIER LEFT_PAREN INTEGER_NUMBER RIGHT_PAREN
+    ;
+
+boolean_type returns [BooleanType booleanType]
+{ booleanType = new BooleanType(); }
+    : b:BOOLEAN { booleanType.setToken(b); }
+    ;
+
+octet_string_type returns [OctetStringType octetStringType]
+{ octetStringType = new OctetStringType(); }
+    : o:OCTET STRING { octetStringType.setToken(o); }
+    ;
+
+character_string_type
+    : BMPSTRING
+    | GENERAL_STRING
+    | GRAPHIC_STRING
+    | IA5_STRING
+    | ISO646_STRING
+    | NUMERIC_STRING
+    | PRINTABLE_STRING
+    | TELETEX_STRING
+    | T61_STRING
+    | UNIVERSAL_STRING
+    | UTF8_STRING
+    | VIDEOTEX_STRING
+    | VISIBLE_STRING
+    | CHARACTER STRING
+    ;
+
+sequence_type returns [SequenceType sequenceType]
+{
+    ComponentTypeLists ctl;
+    sequenceType = new SequenceType();
+}
+    : SEQUENCE LEFT_CURLY RIGHT_CURLY
+    | SEQUENCE LEFT_CURLY ctl=component_type_lists RIGHT_CURLY { sequenceType.setComponentTypeLists(ctl); }
+    ;
+
+sequence_of_type returns [SequenceOfType sequenceOfType]
+{
+    Type t;
+    sequenceOfType = new SequenceOfType();
+}
+    : SEQUENCE OF t=type { sequenceOfType.setType(t); }
+    | SEQUENCE OF t=named_type { sequenceOfType.setType(t); }
+    ;
+
+referenced_type returns [ReferencedType referencedType]
+{
+    Object r;
+    referencedType = new ReferencedType();
+}
+    : r=defined_type { referencedType.setReference(r); }
+    ;
+
+defined_type returns [DefinedType definedType]
+{ definedType = new DefinedType(); }
+    : tr:TYPEREFERENCE { definedType.setDefinition(new TypeReference(tr)); }
+    ;
+
+component_type_lists returns [ComponentTypeLists componentTypeLists]
+{
+    ComponentTypeList ctl;
+    componentTypeLists = new ComponentTypeLists();
+}
+    : ctl=root_component_type_list { componentTypeLists.setComponentTypeList(ctl); }
+    ;
+
+root_component_type_list returns [ComponentTypeList componentTypeList]
+{ componentTypeList = null; }
+    : componentTypeList=component_type_list
+    ;
+
+component_type_list returns [ComponentTypeList componentTypeList]
+  {
+      Type t;
+      componentTypeList = new ComponentTypeList();
+  }
+
+    : t=component_type { componentTypeList.add(t); } (COMMA t=component_type { componentTypeList.add(t); })*
+    ;
+
+component_type returns [ComponentType componentType]
+{
+    Type t;
+    Value v;
+    componentType = new ComponentType();
+}
+    : t=named_type { componentType.setType(t); }
+      (  OPTIONAL { componentType.setComponentTypeEnum(ComponentTypeEnum.OPTIONAL); }
+       | DEFAULT v=value { componentType.setValue(v); componentType.setComponentTypeEnum(ComponentTypeEnum.DEFAULT); })?
+    | COMPONENTS OF t=type { componentType.setType(t); componentType.setComponentTypeEnum(ComponentTypeEnum.COMPONENTS_OF); }
+    ;
+
+named_type returns [NamedType namedType]
+{
+    Type t;
+    namedType = new NamedType();
+}
+    : id:IDENTIFIER
+      (LEFT_SQUARE tid:INTEGER_NUMBER RIGHT_SQUARE { namedType.setTag( new Tag(new IntegerPrimitive(tid))); } )?
+      t=type { namedType.setName(id); namedType.setType(t); }
+    ;
+
+integer_type returns [IntegerType t]
+{ t = new IntegerType(); }
+    : i:INTEGER { t.setToken(i); }
+    ;
+
+value returns [Value v]
+{ v = null; }
+    : v=builtin_value
+    | IDENTIFIER
+    ;
+
+builtin_value returns [Value value]
+{ value = null; }
+    : value=boolean_value
+    | value=integer_value
+    ;
+
+boolean_value returns [BooleanPrimitive v]
+{ v = new BooleanPrimitive(); }
+    : b1:TRUE  { v.setToken(b1); }
+    | b2:FALSE { v.setToken(b2); }
+    ;
+
+integer_value returns [IntegerPrimitive v]
+{ v = new IntegerPrimitive(); }
+    : MINUS i1:INTEGER_NUMBER  { v.setNegative(true); v.setToken(i1); }
+    | i2:INTEGER_NUMBER { v.setToken(i2); }
+    ;
+
+value_assignment returns [ValueAssignment va]
+{
+    va = new ValueAssignment();
+    Type t;
+    Value v;
+}
+    : id:IDENTIFIER { va.setValueReference(new ValueReference(id)); } t=type { va.setType(t); } ASSIGNMENT v=value { va.setValue(v); }
+    ;
+
+constraint returns [Constraint constraint]
+{
+    ConstraintSpec cs;
+    constraint = new Constraint();
+}
+    : LEFT_PAREN cs=constraint_spec RIGHT_PAREN { constraint.setConstraintSpec(cs); }
+    ;
+
+constraint_spec returns [ConstraintSpec constraintSpec]
+{ constraintSpec = null; }
+    : constraintSpec=subtype_constraint
+    ;
+
+subtype_constraint returns [SubtypeConstraintSpec subtypeConstraintSpec]
+{
+    ElementSetSpec ess;
+    subtypeConstraintSpec = new SubtypeConstraintSpec();
+}
+    : ess=element_set_specs { subtypeConstraintSpec.setElementSetSpec(ess); }
+    ;
+
+element_set_specs returns [ElementSetSpec elementSetSpec]
+{ elementSetSpec = null; }
+    : elementSetSpec=root_element_set_spec
+    ;
+
+root_element_set_spec returns [ElementSetSpec elementSetSpec]
+{ elementSetSpec = null; }
+    : elementSetSpec=element_set_spec
+    ;
+
+element_set_spec returns [ElementSetSpec elementSetSpec]
+{ elementSetSpec = null; }
+    : elementSetSpec=unions
+    ;
+
+unions returns [Union union]
+{
+    Intersection i;
+    union = new Union();
+}
+    : i=intersections { union.addIntersection(i); }
+    ;
+
+intersections returns [Intersection intersection]
+{
+    Element ie;
+    intersection = new Intersection();
+}
+    : ie=intersection_elements { intersection.addElement(ie); }
+    ;
+
+intersection_elements returns [Element element]
+{ element = null; }
+    : element=elements
+    ;
+
+elements returns [Element element]
+{ element = null; }
+    : element=subtype_elements
+    ;
+
+subtype_elements returns [Element element]
+{ element = null; }
+    : element=value_range
+    ;
+
+value_range returns [ValueRange valueRange]
+{
+    LowerEndpoint le;
+    UpperEndpoint ue;
+    valueRange = new ValueRange();
+}
+    : le=lower_endpoint RANGE ue=upper_endpoint { valueRange.setLowerEndpoint(le); valueRange.setUpperEndpoint(ue); }
+    ;
+
+lower_endpoint returns [LowerEndpoint le]
+{
+    Value v;
+    le = new LowerEndpoint();
+}
+    : v=value { le.setValue(v); } (LESS_THAN { le.setOpen(true); })?
+    | MIN { le.setMin(true); } (LESS_THAN { le.setOpen(true); })?
+    ;
+
+upper_endpoint returns [UpperEndpoint ue]
+{
+    Value v;
+    ue = new UpperEndpoint();
+}
+    :  (LESS_THAN { ue.setOpen(true); })? v=value { ue.setValue(v); }
+    |  (LESS_THAN { ue.setOpen(true); })? MAX { ue.setMax(true); }
+    ;
+
+
+/*
+ * X.681-0207
+ */
+
+
+/*
+ * X.682-0207
+ */
+
+/*
+ * X.683-0207
+ */
+
+number
+    : INTEGER_NUMBER
+    | REAL_NUMBER
+    | BINARY_STRING
+    | HEXADECIMAL_STRING
+    ;
+
+module_reference returns [ModuleReference reference]
+{ reference = new ModuleReference(); }
+    : tr:TYPEREFERENCE { reference.setToken(tr); }
+    ;
+
+value_reference : IDENTIFIER;
+type_reference : TYPEREFERENCE;
+object_reference : value_reference;
+word : type_reference;
+object_set_reference : type_reference;
+type_field_reference : AMPERSAND type_reference;
+value_field_reference : AMPERSAND value_reference;
+value_set_field_reference : AMPERSAND value_reference;
+object_field_reference : AMPERSAND object_reference;
+object_set_field_reference : AMPERSAND object_reference;
+object_class_reference : AMPERSAND type_reference;
+
+
+{
+import org.apache.asn1.compiler.*;
+}
+class ASN1Compiler extends TreeParser;
+options {
+    defaultErrorHandler=false;
+}
+
+modules : ( ABSENT );
+
+class ASN1Lexer extends Lexer;
+options {
+    k=3;
+    charVocabulary = '\3'..'\377' | '\u1000'..'\u1fff';
+}
+
+/*
+ * X.680-0207
+ */
+tokens {
+    ABSENT = "ABSENT";
+    ABSTRACT_SYNTAX = "ABSTRACT-SYNTAX";
+    ALL = "ALL";
+    ANY = "ANY";
+    ARGUMENT = "ARGUMENT";
+    APPLICATION = "APPLICATION";
+    AUTOMATIC = "AUTOMATIC";
+    BASEDNUM = "BASEDNUM";
+    BEGIN = "BEGIN";
+    BIT = "BIT";
+    BMPSTRING = "BMPString";
+    BOOLEAN = "BOOLEAN";
+    BY = "BY";
+    CHARACTER = "CHARACTER";
+    CHOICE = "CHOICE";
+    CLASS = "CLASS";
+    COMPONENTS = "COMPONENTS";
+    COMPONENT = "COMPONENT";
+    CONSTRAINED = "CONSTRAINED";
+    DEFAULT = "DEFAULT";
+    DEFINED= "DEFINED";
+    DEFINITIONS = "DEFINITIONS";
+    EMBEDDED = "EMBEDDED";
+    END = "END";
+    ENUMERATED  = "ENUMERATED";
+    ERROR  = "ERROR";
+    ERRORS = "ERRORS";
+    EXCEPT = "EXCEPT";
+    EXPLICIT = "EXPLICIT";
+    EXPORTS = "EXPORTS";
+    EXTENSIBILITY = "EXTENSIBILITY";
+    EXTERNAL = "EXTERNAL";
+    FALSE = "FALSE";
+    FROM = "FROM";
+    GENERALIZED_TIME = "GeneralizedTime";
+    GENERAL_STRING = "GeneralString";
+    GRAPHIC_STRING = "GraphicString";
+    IA5_STRING = "IA5String";
+    IDENTIFIER = "IDENTIFIER";
+    IMPLICIT = "IMPLICIT";
+    IMPLIED = "IMPLIED";
+    IMPORTS = "IMPORTS";
+    INCLUDES = "INCLUDES";
+    INSTANCE = "INSTANCE";
+    INTEGER = "INTEGER";
+    INTERSECTION = "INTERSECTION";
+    ISO646_STRING = "ISO646String";
+    LINKED = "LINKED";
+    MAX = "MAX";
+    MINUS_INFINITY = "MINUSINFINITY";
+    MIN = "MIN";
+    NULL = "NULL";
+    NUMERIC_STRING = "NumericString";
+    OBJECT_DESCRIPTOR = "ObjectDescriptor";
+    OBJECT = "OBJECT";
+    OCTET = "OCTET";
+    OPERATION = "OPERATION";
+    OF = "OF";
+    OID = "OID";
+    OPTIONAL = "OPTIONAL";
+    PARAMETER = "PARAMETER";
+    PDV = "PDV";
+    PLUS_INFINITY = "PLUSINFINITY";
+    PRESENT = "PRESENT";
+    PRINTABLE_STRING = "PrintableString";
+    PRIVATE = "PRIVATE";
+    REAL = "REAL";
+    RELATIVE = "RELATIVE";
+    RESULT = "RESULT";
+    SEQUENCE = "SEQUENCE";
+    SET = "SET";
+    SIZE = "SIZE";
+    STRING = "STRING";
+    T61_STRING = "T61String";
+    TAGS = "TAGS";
+    TELETEX_STRING = "TeletexString";
+    TRUE = "TRUE";
+    TYPE_IDENTIFIER = "TYPE-IDENTIFIER";
+    UNION = "UNION";
+    UNIQUE = "UNIQUE";
+    UNIVERSAL = "UNIVERSAL";
+    UNIVERSAL_STRING = "UniversalString";
+    UTC_TIME = "UTCTime";
+    UTF8_STRING = "UTF8String";
+    VIDEOTEX_STRING = "VideotexString";
+    VISIBLE_STRING = "VisibleString";
+    WITH = "WITH";
+
+/*
+ * X.680-0207
+ */
+
+    REFERENCE = "Reference";
+}
+
+NEWLINE
+    : ((('\r''\n') => '\r''\n') | '\r' | '\n')
+        { newline(); $setType(Token.SKIP); }
+    ;
+
+WS : ( ' ' | '\t' | '\f' ) { $setType(Token.SKIP); } ;
+
+COMMENT : "--" ;
+
+SL_COMMENT
+	: COMMENT
+	  ({ LA(2)!='-' }? '-' | ~('-'|'\n'|'\r'))*
+	  (((('\r''\n') => '\r''\n') | '\r' | '\n') {newline();} | COMMENT)
+        { $setType(Token.SKIP); }
+	;
+
+ASSIGNMENT : "::=";
+
+IDENTIFIER : SMALL_LETTER ( (HYPHEN)? (SMALL_LETTER | CAPITAL_LETTER | DIGIT) )* ;
+TYPEREFERENCE : CAPITAL_LETTER ( (HYPHEN)? (SMALL_LETTER | CAPITAL_LETTER | DIGIT) )* ;
+
+NUMBER : DIGITS (DOT (DIGIT)* (EXPONENT)? { $setType(REAL_NUMBER); } | { $setType(INTEGER_NUMBER); } ) ;
+
+
+protected DIGITS : ( ('1'..'9') (DIGIT)* | '0' );
+
+protected EXPONENT
+    : ('e'|'E') ('+'|'-')? (DIGIT)+
+    ;
+
+NUMBER_STRING : "'" (HEX_DIGIT | WS)* ("'B" {$setType(BINARY_STRING);} | "'H" {$setType(HEXADECIMAL_STRING);} );
+
+protected CAPITAL_LETTER : 'A'..'Z';
+protected SMALL_LETTER : 'a'..'z';
+protected DIGIT : '0'..'9';
+protected HEX_DIGIT : ('0'..'9' | 'A'..'F');
+EXCLAMATION_MARK : '!';
+QUOTATION_MARK : '"';
+AMPERSAND : '&';
+APOSTROPHE : '\'';
+LEFT_PAREN : '(';
+RIGHT_PAREN : ')';
+ASTERISK : '*';
+COMMA : ',';
+HYPHEN : '-';
+DOT : '.';
+SOLIDUS : '/';
+COLON : ':';
+SEMICOLON : ';';
+LESS_THAN : '<';
+EQUALS : '=';
+GREATER_THAN : '>';
+AT : '@';
+LEFT_SQUARE : '[';
+RIGHT_SQUARE : ']';
+CIRCUMFLEX : '^';
+UNDERSCORE : '_';
+LEFT_CURLY : '{';
+BAR : '|';
+RIGHT_CURLY : '}';
+RANGE : "..";
+ELLIPSIS : "...";
+

Added: labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/Compiler.java
URL: http://svn.apache.org/viewvc/labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/Compiler.java?view=auto&rev=538217
==============================================================================
--- labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/Compiler.java (added)
+++ labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/Compiler.java Tue May 15 08:29:41 2007
@@ -0,0 +1,37 @@
+/**
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.asn1.compiler;
+
+import java.util.Map;
+
+import org.apache.asn1.compiler.stages.ProcessException;
+import org.apache.asn1.compiler.stages.codegen.CodeGeneratorStage;
+import org.apache.asn1.compiler.stages.parser.ParseStage;
+
+
+/**
+ * @version $Revision: 531147 $ $Date: $
+ */
+public class Compiler
+{
+    public void compile( Map environment ) throws ProcessException
+    {
+        new ParseStage().process( environment );
+        new CodeGeneratorStage().process( environment );
+    }
+}

Added: labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/ProcessException.java
URL: http://svn.apache.org/viewvc/labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/ProcessException.java?view=auto&rev=538217
==============================================================================
--- labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/ProcessException.java (added)
+++ labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/ProcessException.java Tue May 15 08:29:41 2007
@@ -0,0 +1,46 @@
+/**
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.asn1.compiler.stages;
+
+/**
+ * A exception class that is thown by a compiler stage's proccess method.
+ *
+ * @version $Revision: 531147 $ $Date: $
+ */
+public class ProcessException extends Exception
+{
+    public ProcessException()
+    {
+        super();
+    }
+
+    public ProcessException( String message )
+    {
+        super( message );
+    }
+
+    public ProcessException( String message, Throwable cause )
+    {
+        super( message, cause );
+    }
+
+    public ProcessException( Throwable cause )
+    {
+        super( cause );
+    }
+}

Added: labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/Stage.java
URL: http://svn.apache.org/viewvc/labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/Stage.java?view=auto&rev=538217
==============================================================================
--- labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/Stage.java (added)
+++ labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/Stage.java Tue May 15 08:29:41 2007
@@ -0,0 +1,31 @@
+/**
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.asn1.compiler.stages;
+
+import java.util.Map;
+
+
+/**
+ * Interface for compiler stages.
+ *
+ * @version $Revision: 531147 $ $Date: $
+ */
+public interface Stage
+{
+    public void process( Map environment ) throws ProcessException;
+}

Added: labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/codegen/CodeGenerator.java
URL: http://svn.apache.org/viewvc/labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/codegen/CodeGenerator.java?view=auto&rev=538217
==============================================================================
--- labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/codegen/CodeGenerator.java (added)
+++ labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/codegen/CodeGenerator.java Tue May 15 08:29:41 2007
@@ -0,0 +1,43 @@
+/**
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.asn1.compiler.stages.codegen;
+
+import java.util.Properties;
+
+import org.apache.asn1.compiler.stages.ProcessException;
+
+
+/**
+ * @version $Revision: $ $Date: $
+ */
+public abstract class CodeGenerator
+{
+    private final Properties properties;
+
+    public CodeGenerator( Properties properties )
+    {
+        this.properties = properties;
+    }
+
+    public abstract void generate() throws ProcessException;
+
+    public Properties getProperties()
+    {
+        return properties;
+    }
+}

Added: labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/codegen/CodeGeneratorFinder.java
URL: http://svn.apache.org/viewvc/labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/codegen/CodeGeneratorFinder.java?view=auto&rev=538217
==============================================================================
--- labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/codegen/CodeGeneratorFinder.java (added)
+++ labs/dungeon/trunk/asn1-compiler/src/main/java/org/apache/asn1/compiler/stages/codegen/CodeGeneratorFinder.java Tue May 15 08:29:41 2007
@@ -0,0 +1,158 @@
+/**
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.asn1.compiler.stages.codegen;
+
+import java.io.BufferedInputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.lang.reflect.Constructor;
+import java.lang.reflect.InvocationTargetException;
+import java.util.Map;
+import java.util.Properties;
+import java.util.WeakHashMap;
+
+import org.apache.asn1.compiler.stages.ProcessException;
+
+
+/**
+ * This finder allows for the loose coupling of code generators.
+ *
+ * @version $Revision: $ $Date: $
+ */
+public class CodeGeneratorFinder
+{
+    private final static String PROPERTY_NAME = "org.apache.asn1.CodeGeneratorClass";
+    private final static Map<String, CacheItem> classCache = new WeakHashMap<String, CacheItem>();
+
+    private CodeGeneratorFinder()
+    {
+    }
+
+    /**
+     * Creates a new instance of the given key
+     *
+     * @param key is the key to add to the path to find a text file
+     *            containing the factory name
+     * @return a newly created instance
+     */
+    public static CodeGenerator newInstance( String key ) throws ProcessException
+    {
+        CodeGenerator result;
+        try
+        {
+            synchronized ( classCache )
+            {
+                CacheItem item = classCache.get( key );
+                if ( item == null )
+                {
+                    item = new CacheItem();
+
+                    item.properties = findCodeGeneratorProperies( key );
+
+                    Class clazz = loadClass( item.properties );
+                    item.constructor = clazz.getConstructor( Properties.class );
+
+                    classCache.put( key, item );
+                }
+                result = (CodeGenerator) item.constructor.newInstance( item.properties );
+            }
+        }
+        catch ( ClassNotFoundException doNothing )
+        {
+            throw new ProcessException( doNothing );
+        }
+        catch ( IOException doNothing )
+        {
+            throw new ProcessException( doNothing );
+        }
+        catch ( InstantiationException doNothing )
+        {
+            throw new ProcessException( doNothing );
+        }
+        catch ( IllegalAccessException doNothing )
+        {
+            throw new ProcessException( doNothing );
+        }
+        catch ( NoSuchMethodException doNothing )
+        {
+            throw new ProcessException( doNothing );
+        }
+        catch ( InvocationTargetException doNothing )
+        {
+            throw new ProcessException( doNothing );
+        }
+        return result;
+    }
+
+    private static Class loadClass( Properties properties ) throws ClassNotFoundException, IOException
+    {
+        String className = properties.getProperty( PROPERTY_NAME );
+        if ( className == null )
+        {
+            throw new IOException( "Expected property is missing: " + PROPERTY_NAME );
+        }
+        try
+        {
+            return Thread.currentThread().getContextClassLoader().loadClass( className );
+        }
+        catch ( ClassNotFoundException e )
+        {
+            return CodeGeneratorFinder.class.getClassLoader().loadClass( className );
+        }
+    }
+
+    @SuppressWarnings({"EmptyCatchBlock"})
+    private static Properties findCodeGeneratorProperies( String key ) throws IOException
+    {
+        String uri = "META-INF/org/apache/asn1/codegen/" + key;
+
+        InputStream in = Thread.currentThread().getContextClassLoader().getResourceAsStream( uri );
+        if ( in == null )
+        {
+            in = CodeGeneratorFinder.class.getClassLoader().getResourceAsStream( uri );
+            if ( in == null )
+            {
+                throw new IOException( "Could not find strategy class for resource: " + uri );
+            }
+        }
+
+        BufferedInputStream reader = new BufferedInputStream( in );
+        try
+        {
+            Properties properties = new Properties();
+            properties.load( reader );
+            return properties;
+        }
+        finally
+        {
+            try
+            {
+                reader.close();
+            }
+            catch ( Exception doNothing )
+            {
+            }
+        }
+    }
+
+    private static class CacheItem
+    {
+        Constructor constructor;
+        Properties properties;
+    }
+}
\ No newline at end of file



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org