Documentation
¶
Overview ¶
The es5 package implements a generator for compiling Serulian into ECMAScript 5.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateES5 ¶
func GenerateES5(sg *scopegraph.ScopeGraph) (string, *sourcemap.SourceMap, error)
GenerateES5 produces ES5 code from the given scope graph.
Types ¶
This section is empty.
Source Files
¶
Directories
¶
Path | Synopsis |
---|---|
codedom package contains types representing a lower-level IR for easier construction of ES5.
|
codedom package contains types representing a lower-level IR for easier construction of ES5. |
dombuilder package defines methods for translating the Serulian SRG into the codedom IR.
|
dombuilder package defines methods for translating the Serulian SRG into the codedom IR. |
expressiongenerator defines code for translating from CodeDOM expressions into esbuilder ExpressionBuilder objects.
|
expressiongenerator defines code for translating from CodeDOM expressions into esbuilder ExpressionBuilder objects. |
statemachine package contains the helper code for generating a state machine representing the statement and expression level of the ES5 generator.
|
statemachine package contains the helper code for generating a state machine representing the statement and expression level of the ES5 generator. |
Click to show internal directories.
Click to hide internal directories.