Class: Electr::Syntaxer
- Inherits:
-
Object
- Object
- Electr::Syntaxer
- Defined in:
- lib/electr/parser/syntaxer.rb
Overview
A Syntaxer transform a list of lexical units into an AST.
There isn’t a monolithic class that does this work. There is actually some rule’s classes to make the AST.
Instance Method Summary collapse
-
#initialize(lexical_units) ⇒ Syntaxer
constructor
lexical_units - Array of LexicalUnits.
-
#run ⇒ Object
Public: Compile lexical units into an AST.