Skip to content

Identify and Implement Syntactic and Semantic Observers Design Patterns. (A02.T01) #1263

@mayanje

Description

@mayanje

Purpose

The purpose here is to implement Syntactical node creation listeners, and Parser build action dispatchers, so that Syntax directed strategies can be used, applied and elaborated.

ProgramClassBuilderNodeListener class

This class is a NodeListener instance over a IProgramClassBuilder interface imlplementation, witch is able to listen to Systactical nodes creation and parsing action performing.

class_type_cobol_1_1_compiler_1_1_cup_parser_1_1_node_builder_1_1_program_class_builder_node_listener__inherit__graph

ProgramClassBuilderNodeDispatcher class

This class is a NodeDispatcher instance over a IProgramClassBuilder interface imlplementation, witch is able to dispatch Syntactical nodes created and parsing actions performed, to registered NodeListener instances and ProgramClassBuilderNodeListener instances.

class_type_cobol_1_1_compiler_1_1_cup_parser_1_1_node_builder_1_1_program_class_builder_node_dispatcher__inherit__graph

Other classes descriptions

Class Description
NodeListener An interface that describes the contract of any objet able to listen to Syntactical node creation.
IProgramClassBuilder An interface that describes the contract of any objet able to handle parsing actions for program class builing.
NodeDispatcher It is the base class of any object which can dispatch node creation actions to registered NodeListener instances.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions