Java Code Generator for DDM Dialects #
Generates Java source files from DDM dialect definitions:
- Sealed interfaces for categories, with operator records as nested types
- Non-sealed stub interfaces for abstract categories (e.g., Init.Expr)
- Generated
toIonmethods on each record for serialization - Static factory methods for ergonomic AST construction
- Slim Ion serializer with helper methods (no reflection)
All names are disambiguated to avoid collisions with Java reserved words, base classes (Node, SourceRange, IonSerializer), and each other.
Name Utilities #
Type Mapping #
Serialization Code Generation #
Java Structures #
@[implicit_reducible]
Equations
Equations
Instances For
Code Generation #
Equations
- One or more equations did not get rendered due to their size.
Instances For
File Output #
Equations
- StrataDDM.Java.packageToPath package = { toString := "/".intercalate (package.splitOn ".") }
Instances For
def
StrataDDM.Java.writeJavaFiles
(baseDir : System.FilePath)
(package : String)
(files : GeneratedFiles)
:
Equations
- One or more equations did not get rendered due to their size.