org.ogre4j
Interface ICompiler2Pass

All Superinterfaces:
IAllocatedObject<IScriptingAllocPolicy>, INativeObject, IScriptingAllocatedObject
All Known Subinterfaces:
ICompositorScriptCompiler
All Known Implementing Classes:
Compiler2Pass, CompositorScriptCompiler

public interface ICompiler2Pass
extends INativeObject, IScriptingAllocatedObject


Nested Class Summary
static interface ICompiler2Pass.ILabelContainer
           
static interface ICompiler2Pass.ILexemeTokenDef
           
static interface ICompiler2Pass.ILexemeTokenDefContainer
           
static interface ICompiler2Pass.ILexemeTokenMap
           
static interface ICompiler2Pass.ITokenInst
           
static interface ICompiler2Pass.ITokenInstContainer
           
static interface ICompiler2Pass.ITokenRule
           
static interface ICompiler2Pass.ITokenRuleContainer
           
static interface ICompiler2Pass.ITokenState
           
static interface ICompiler2Pass.ITokenStateContainer
           
 
Method Summary
 boolean compile(java.lang.String source, java.lang.String sourceName)
          compile the source - performs 2 passes.
 java.lang.String getClientBNFGrammer()
          gets BNF Grammar.
 java.lang.String getClientGrammerName()
          get the name of the BNF grammar.
 
Methods inherited from interface org.xbig.base.INativeObject
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 

Method Detail

compile

boolean compile(java.lang.String source,
                java.lang.String sourceName)
compile the source - performs 2 passes. First pass is to tokenize, check semantics and context. The second pass is performed by using tokens to look up function implementors and executing them which convert tokens to application specific instructions.


getClientBNFGrammer

java.lang.String getClientBNFGrammer()
gets BNF Grammar. Gets called when BNF grammar has to be compiled for the first time.


getClientGrammerName

java.lang.String getClientGrammerName()
get the name of the BNF grammar.



Copyright © 2007 netAllied GmbH. All Rights Reserved.