Persistate API documentation
CodeGenerator Delegate
NamespacesPersistate.LanguageCodeGenerator

[This is preliminary documentation and is subject to change.]

This delegate is used to store code generation methods in IGeneratorClass classes.
Declaration Syntax
C#
public delegate Token CodeGenerator(
	ProductionToken productionToken
)
Parameters
productionToken (ProductionToken)
A ProductionToken containing the sub-tree of the Abstract Syntax Tree (AST) corresponding to the parsed production.
Return Value
Either an ErrorToken containing semantic errors, null, or another type of Token, most usually a ProductionToken or a GeneratedToken. If null is returned, no action is taken. If a token other than an ErrorToken is returned, this token takes the place of the passed token in the AST.
Remarks
Each method will have the name of a Production and will generate code for the entity that the Production represents.

Assembly: Persistate.Language (Module: Persistate.Language) Version: 0.6.1.20 (0.6.1.20)