A collection of code samples to demonstrate usage of ceylon.ast (module ceylon.ast.core).

Includes:

  • sample ASTs to demonstrate how to create ASTs (with ceylon.ast.create (module ceylon.ast.create)),
  • sample Editors to demonstrate how to edit ASTs, and
  • sample Visitors to demonstrate how to consume ASTs.
Packages
ceylon.ast.samples.bodyReturnRewrite

Demonstration of a Visitor and an Editor.

ceylon.ast.samples.completeCompilationUnit

A regular compilation unit that contains every node type that can be a direct child of a regular compilation unit, i. e.…

ceylon.ast.samples.helloworld

A simple hello world program, consisting of:

ceylon.ast.samples.removeExtraInfoVisitor
ceylon.ast.samples.turingMachine

Type System Turing Machine

Dependencies
ceylon.ast.core1.3.2
ceylon.ast.create1.3.2
ceylon.collection1.3.2