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…

ceylon.ast.samples.helloworld

A simple hello world program, consisting of:

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

Type System Turing Machine

It is possible to emulate a Turing machine in the Ceylon type…

Dependencies
ceylon.ast.core1.2.0
ceylon.ast.create1.2.0
ceylon.collection1.2.0