|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ExtensionInfo
is the main interface for defining language
extensions. The frontend will load the ExtensionInfo
specified on the command-line. It defines the type system, AST node
factory, parser, and other parameters of a language extension.
Method Summary | |
java.lang.String |
compilerName()
The name of the compiler for usage messages |
Job |
createJob(Source source)
Produce a job used to compile the given source. |
java.lang.String |
fileExtension()
The default extension that source files are expected to have |
void |
initCompiler(Compiler compiler)
Initialize the extension with a particular compiler. |
NodeFactory |
nodeFactory()
Produce a node factory for this language extension. |
java.lang.String |
options()
Report the options accepted by the extension. |
int |
parseCommandLine(java.lang.String[] args,
int index,
Options options)
Parse as much of the command line as this extension understands, up to the first source file. |
Parser |
parser(java.io.Reader reader,
Job job)
Get a parser for this language extension. |
void |
setOptions(Options options)
Initialize the extension with the command-line options. |
SourceLoader |
sourceLoader()
Produce a source factory for this language extension. |
TargetFactory |
targetFactory()
Produce a target factory for this language extension. |
TypeSystem |
typeSystem()
Produce a type system for this language extension. |
Version |
version()
Report the version of the extension. |
Method Detail |
public int parseCommandLine(java.lang.String[] args, int index, Options options) throws UsageError
public void setOptions(Options options) throws UsageError
public java.lang.String compilerName()
public Version version()
public java.lang.String options()
public void initCompiler(Compiler compiler)
public java.lang.String fileExtension()
public TypeSystem typeSystem()
public NodeFactory nodeFactory()
public SourceLoader sourceLoader()
public Job createJob(Source source)
public TargetFactory targetFactory()
public Parser parser(java.io.Reader reader, Job job)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |