Class: Rley::ParseRep::CSTBuilder

Inherits:
ParseTreeBuilder show all
Defined in:
lib/rley/parse_rep/cst_builder.rb

Overview

The purpose of a CSTBuilder is to build piece by piece a CST (Concrete Syntax Tree) from a sequence of input tokens and visit events produced by walking over a GFGParsing object. Uses the Builder GoF pattern. The Builder pattern creates a complex object (say, a parse tree) from simpler objects (terminal and non-terminal nodes) and using a step by step approach.

Instance Attribute Summary

Attributes inherited from ParseTreeBuilder

#result, #tokens

Method Summary

Methods inherited from ParseTreeBuilder

#done!, #initialize, #receive_event

Constructor Details

This class inherits a constructor from Rley::ParseRep::ParseTreeBuilder