Zen
A cross-platform functional programming language
Public Member Functions | Private Member Functions | Private Attributes

GrammarDefActionWriter Class Reference

Class that generates a grammar action body. More...

Inheritance diagram for GrammarDefActionWriter:
GrammarStatement::Visitor

List of all members.

Public Member Functions

 GrammarDefActionWriter (Indenter &ind, z::stream &os, const Ast::GrammarImplItem &item)
 Default constructor.

Private Member Functions

virtual void visit (const Ast::GrammarRuleStatement &stmt)
 Abstract visitor function.
virtual void visit (const Ast::LexerStatement &stmt)
 Abstract visitor function.

Private Attributes

Indenter_ind
 Current indentation level.
z::stream_os
 Output stream.
const Ast::GrammarImplItem_item
 The current grammar item to be written.

Detailed Description

Class that generates a grammar action body.


Constructor & Destructor Documentation

GrammarDefActionWriter ( Indenter ind,
z::stream os,
const Ast::GrammarImplItem item 
) [inline]

Default constructor.

Parameters:
indThe indentation level
osThe stream to write out to
itemThe implementation item to be generated

Member Function Documentation

virtual void visit ( const Ast::GrammarRuleStatement stmt) [inline, private, virtual]

Abstract visitor function.

Parameters:
stmtThe statement reference to handle

Implements GrammarStatement::Visitor.

virtual void visit ( const Ast::LexerStatement stmt) [inline, private, virtual]

Abstract visitor function.

Parameters:
stmtThe statement reference to handle

Implements GrammarStatement::Visitor.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines