Class: Aura::Transformer

Inherits:
Parslet::Transform
  • Object
show all
Defined in:
lib/aura/transformer.rb

Overview

Walks the raw Parslet parse tree and rewrites it into a flat list of semantic node hashes, each tagged with a :type the code generator switches on. Numeric leaves are coerced to Integer/Float here (not String) so node values are directly usable.