![]() |
Zen
A cross-platform functional programming language
|
Class that generates a grammar action body. More...
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. | |
Class that generates a grammar action body.
| GrammarDefActionWriter | ( | Indenter & | ind, |
| z::stream & | os, | ||
| const Ast::GrammarImplItem & | item | ||
| ) | [inline] |
Default constructor.
| ind | The indentation level |
| os | The stream to write out to |
| item | The implementation item to be generated |
| virtual void visit | ( | const Ast::GrammarRuleStatement & | stmt | ) | [inline, private, virtual] |
Abstract visitor function.
| stmt | The statement reference to handle |
Implements GrammarStatement::Visitor.
| virtual void visit | ( | const Ast::LexerStatement & | stmt | ) | [inline, private, virtual] |
Abstract visitor function.
| stmt | The statement reference to handle |
Implements GrammarStatement::Visitor.