Class: Aura::Transformer
- Inherits:
-
Parslet::Transform
- Object
- Parslet::Transform
- Aura::Transformer
- Defined in:
- lib/aura/transformer.rb,
lib/aura.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.