Module xl.compiler

Class Compiler

java.lang.Object
antlr.TreeParser
de.grogra.xl.compiler.CompilerBase
de.grogra.xl.compiler.Compiler
All Implemented Interfaces:
CompilerTokenTypes, Members.Resolution

public class Compiler extends CompilerBase
  • Field Details

    • _tokenNames

      public static final String[] _tokenNames
    • _tokenSet_0

      public static final antlr.collections.impl.BitSet _tokenSet_0
    • _tokenSet_1

      public static final antlr.collections.impl.BitSet _tokenSet_1
    • _tokenSet_2

      public static final antlr.collections.impl.BitSet _tokenSet_2
    • _tokenSet_3

      public static final antlr.collections.impl.BitSet _tokenSet_3
    • _tokenSet_4

      public static final antlr.collections.impl.BitSet _tokenSet_4
    • _tokenSet_5

      public static final antlr.collections.impl.BitSet _tokenSet_5
    • _tokenSet_6

      public static final antlr.collections.impl.BitSet _tokenSet_6
    • _tokenSet_7

      public static final antlr.collections.impl.BitSet _tokenSet_7
    • _tokenSet_8

      public static final antlr.collections.impl.BitSet _tokenSet_8
    • _tokenSet_9

      public static final antlr.collections.impl.BitSet _tokenSet_9
    • _tokenSet_10

      public static final antlr.collections.impl.BitSet _tokenSet_10
    • _tokenSet_11

      public static final antlr.collections.impl.BitSet _tokenSet_11
  • Constructor Details

    • Compiler

      public Compiler()
  • Method Details

    • compile

      protected CompilationUnitScope compile(ClassPath classPath, antlr.collections.AST tree, String source, Scope defaultImports, Annotation[] annotations, CClass shell) throws antlr.RecognitionException
      Specified by:
      compile in class CompilerBase
      Throws:
      antlr.RecognitionException
    • compilationUnit

      public final CompilationUnitScope compilationUnit(antlr.collections.AST _t, ClassPath cpath, Scope imports, Annotation[] annotations, String source, CClass shell) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • name

      public final void name(antlr.collections.AST _t) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • importDecl

      public final void importDecl(antlr.collections.AST _t, CompilationUnitScope scope) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • classDecl

      public final void classDecl(antlr.collections.AST _t, Scope scope, long allowedMods, long implMods, antlr.collections.AST root) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • modifiers

      public final long modifiers(antlr.collections.AST _t, long allowed, long implicit, long incompatibleWithAbstract, List<Annotation> annots, Scope scope) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • classList

      public final Type[] classList(antlr.collections.AST _t, Scope scope) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • typeSpec

      public final Type typeSpec(antlr.collections.AST _t, Scope scope) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • arglist

      public final Expression[] arglist(antlr.collections.AST _t, Scope scope) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • slist

      public final Expression slist(antlr.collections.AST _t, BlockScope scope) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • classMember

      public final void classMember(antlr.collections.AST _t, TypeScope scope, boolean iface) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • extendsClause

      public final Type[] extendsClause(antlr.collections.AST _t, Scope scope) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • classType

      public final Type classType(antlr.collections.AST _t, Scope scope) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • anonymousClass

      public final Expression anonymousClass(antlr.collections.AST _t, BlockScope scope, Type type, antlr.collections.AST typeAST, Expression qualifier, Expression[] args, antlr.collections.AST root) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • anonymousClassImpl

      public final void anonymousClassImpl(antlr.collections.AST _t, TypeScope scope) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • variableDecl

      public final Expression variableDecl(antlr.collections.AST _t, Scope scope) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • methodDecl

      public final void methodDecl(antlr.collections.AST _t, TypeScope scope, boolean iface) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • constructorDecl

      public final void constructorDecl(antlr.collections.AST _t, TypeScope scope) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • instanceInit

      public final void instanceInit(antlr.collections.AST _t, TypeScope scope) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • staticInit

      public final void staticInit(antlr.collections.AST _t, TypeScope scope) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • parameterList

      public final void parameterList(antlr.collections.AST _t, TypeScope ts, MethodScope ms, antlr.collections.AST name) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • throwsList

      public final void throwsList(antlr.collections.AST _t, MethodScope ms) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • initializer

      public final Expression initializer(antlr.collections.AST _t, BlockScope scope, Type type) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • fieldInitializer

      public final Expression fieldInitializer(antlr.collections.AST _t, MethodScope scope, XField field) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • builtInType

      public final Type builtInType(antlr.collections.AST _t) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • graph

      public final Expression graph(antlr.collections.AST _t, BlockScope scope) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • referenceExpr

      public final Expression referenceExpr(antlr.collections.AST _t, Scope scope, Class cls) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • query

      public final Expression query(antlr.collections.AST _t, BlockScope scope, ExpressionFactory graph, CompiletimeModel model, boolean forProduction, boolean context) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • withBlock

      public final Expression withBlock(antlr.collections.AST _t, BlockScope scope, Expression i, antlr.collections.AST block) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • compositePattern

      public final PatternBuilder compositePattern(antlr.collections.AST _t, BlockScope scope, PatternBuilder parent, CompiletimeModel model, boolean allowOpen, boolean context) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • nestedCompositePattern

      public final PatternBuilder nestedCompositePattern(antlr.collections.AST _t, PatternBuilder pb) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • predicate

      public final void predicate(antlr.collections.AST _t, PatternBuilder pb, antlr.collections.AST label) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • traversal

      public final TraversalData traversal(antlr.collections.AST _t, PatternBuilder pb, antlr.collections.AST label) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • term

      public final Expression term(antlr.collections.AST _t, PatternBuilder pb) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • expr

      public final Expression expr(antlr.collections.AST _t, Scope scope) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • termList

      public final Expression[] termList(antlr.collections.AST _t, PatternBuilder pb) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • edgeRest

      public final void edgeRest(antlr.collections.AST _t, PatternBuilder pb, antlr.collections.AST label, antlr.collections.AST edge) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • longExpr

      public final Expression longExpr(antlr.collections.AST _t, Scope scope) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • rule

      public final Expression rule(antlr.collections.AST _t, BlockScope scope, ExpressionFactory graph, CompiletimeModel model) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • stat

      public final Expression stat(antlr.collections.AST _t, BlockScope scope, String label) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • produce

      public final Expression produce(antlr.collections.AST _t, BlockScope scope) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • slistInScope

      public final void slistInScope(antlr.collections.AST _t, BlockScope scope) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • node

      public final Expression node(antlr.collections.AST _t, BlockScope scope, antlr.collections.AST pos, Expression producerIn) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • nodeExpr

      public final Expression nodeExpr(antlr.collections.AST _t, BlockScope scope, ExpressionFactory producer, antlr.collections.AST pos) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • unaryExpr

      public final Expression unaryExpr(antlr.collections.AST _t, Scope scope, boolean includeInstanceScope) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • edgeExpr

      public final Expression edgeExpr(antlr.collections.AST _t, BlockScope scope) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • constantExprPattern

      public final void constantExprPattern(antlr.collections.AST _t) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • literal

      public final Expression literal(antlr.collections.AST _t) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • arrayInitializer

      public final Expression arrayInitializer(antlr.collections.AST _t, BlockScope scope, Type type) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • ruleBlock

      public final Expression ruleBlock(antlr.collections.AST _t, BlockScope scope) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • statBlock

      public final Block statBlock(antlr.collections.AST _t, BlockScope scope) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • elist

      public final Expression elist(antlr.collections.AST _t, BlockScope scope) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • booleanExpr

      public final Expression booleanExpr(antlr.collections.AST _t, Scope scope) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • labelRef

      public final int labelRef(antlr.collections.AST _t, BlockScope scope, boolean forContinue, antlr.collections.AST pos) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • loop

      public final Expression loop(antlr.collections.AST _t, BlockScope scope, String label) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • switchStatement

      public final Expression switchStatement(antlr.collections.AST _t, BlockScope enclosing, String label) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • loopBlock

      public final Block loopBlock(antlr.collections.AST _t, BlockScope scope, String label) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • exprlist

      public final Expression[] exprlist(antlr.collections.AST _t, Scope scope) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • blockExpr

      public final Expression blockExpr(antlr.collections.AST _t, Scope s) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • binaryOp

      public final Expression binaryOp(antlr.collections.AST _t, Scope scope, Expression op, String opName, antlr.collections.AST root) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • assignOp

      public final Expression assignOp(antlr.collections.AST _t, BlockScope scope, antlr.collections.AST pos) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • compoundAssignOp

      public final Expression compoundAssignOp(antlr.collections.AST _t, BlockScope scope, Expression op, String operatorName, antlr.collections.AST root) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • deferredOp

      public final Expression deferredOp(antlr.collections.AST _t, BlockScope scope, String op, antlr.collections.AST pos) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • incOp

      public final Expression incOp(antlr.collections.AST _t, BlockScope scope, boolean postfix, byte inc, String operatorName, antlr.collections.AST root) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • methodInvocation

      public final Expression methodInvocation(antlr.collections.AST _t, BlockScope scope, de.grogra.xl.compiler.ArgumentTransformations impl) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • arrayIndex

      public final Expression arrayIndex(antlr.collections.AST _t, BlockScope scope) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • newExpression

      public final Expression newExpression(antlr.collections.AST _t, BlockScope scope) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • modifier

      public final long modifier(antlr.collections.AST _t) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • annotation

      public final de.grogra.xl.compiler.AnnotationInfo annotation(antlr.collections.AST _t, Scope scope) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • elementValuePair

      public final void elementValuePair(antlr.collections.AST _t, de.grogra.xl.compiler.AnnotationInfo info, antlr.collections.AST element) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException
    • elementValue

      public final Object elementValue(antlr.collections.AST _t, Type expected, de.grogra.xl.compiler.AnnotationInfo info) throws antlr.RecognitionException
      Throws:
      antlr.RecognitionException