Orocos Real-Time Toolkit  2.8.3
Public Member Functions | Public Attributes | List of all members
RTT::scripting::CommonParser Class Reference

This class contains some very common parser definitions. More...

#include <rtt/scripting/CommonParser.hpp>

Public Member Functions

 CommonParser ()
 
 ~CommonParser ()
 
void seenillegalidentifier (iter_t begin, iter_t end)
 

Public Attributes

chset identchar
 
symbols< nil_t > keywordstable
 
lexeme_rule_t keyword
 
lexeme_rule_t keywords
 
lexeme_rule_t endofkeyword
 
rule_t idr
 
lexeme_rule_t idlr
 
rule_t identifier
 
rule_t templ
 plain 'C' identifier. Throws if keyword is parsed. More...
 
rule_t tidentifier
 recursive template def. More...
 
rule_t notassertingidentifier
 identifier with <template> marks in it More...
 
lexeme_rule_t lexeme_identifier
 plain 'C' identifier. Does not throw if keyword is parsed. More...
 
lexeme_rule_t lexeme_notassertingidentifier
 See identifier, but in lexeme parsing mode. More...
 
rule_t type_name
 See notassertingidentifier, but in lexeme parsing mode. More...
 
rule_t eos
 End Of Statement Parser. More...
 
rule_t notassertingeos
 End Of Statement Parser. More...
 
lexeme_rule_t leos
 End Of Statement Parser. More...
 
bool skipeol
 Saves eol skipping state. More...
 
functor_parser< eol_skip_functorskipper
 End Of Statement Parser. More...
 

Detailed Description

This class contains some very common parser definitions.

Todo:
check the identifier parser implementation of asserting when a keyword is wrongly used as an identifier. In current implementation it almost never throws.

Definition at line 52 of file CommonParser.hpp.

Constructor & Destructor Documentation

RTT::CommonParser::CommonParser ( )
RTT::CommonParser::~CommonParser ( )

Definition at line 51 of file CommonParser.cpp.

Member Function Documentation

void RTT::CommonParser::seenillegalidentifier ( iter_t  begin,
iter_t  end 
)

Definition at line 137 of file CommonParser.cpp.

Referenced by CommonParser().

Member Data Documentation

lexeme_rule_t RTT::scripting::CommonParser::endofkeyword

Definition at line 61 of file CommonParser.hpp.

Referenced by CommonParser().

rule_t RTT::scripting::CommonParser::eos

End Of Statement Parser.

Identifies the end of a statement in Orocos scripting.

Definition at line 80 of file CommonParser.hpp.

Referenced by CommonParser(), RTT::scripting::StateGraphParser::StateGraphParser(), and RTT::scripting::ProgramGraphParser::~ProgramGraphParser().

chset RTT::scripting::CommonParser::identchar
rule_t RTT::scripting::CommonParser::identifier
lexeme_rule_t RTT::scripting::CommonParser::idlr

Definition at line 67 of file CommonParser.hpp.

Referenced by CommonParser().

rule_t RTT::scripting::CommonParser::idr

Definition at line 66 of file CommonParser.hpp.

Referenced by CommonParser().

lexeme_rule_t RTT::scripting::CommonParser::keyword
lexeme_rule_t RTT::scripting::CommonParser::keywords

Definition at line 61 of file CommonParser.hpp.

Referenced by CommonParser().

symbols<nil_t> RTT::scripting::CommonParser::keywordstable

Definition at line 59 of file CommonParser.hpp.

Referenced by CommonParser().

lexeme_rule_t RTT::scripting::CommonParser::leos

End Of Statement Parser.

Identifies the end of a statement in Orocos scripting.

Definition at line 82 of file CommonParser.hpp.

Referenced by CommonParser().

lexeme_rule_t RTT::scripting::CommonParser::lexeme_identifier

plain 'C' identifier. Does not throw if keyword is parsed.

Definition at line 72 of file CommonParser.hpp.

Referenced by CommonParser().

lexeme_rule_t RTT::scripting::CommonParser::lexeme_notassertingidentifier

See identifier, but in lexeme parsing mode.

Definition at line 73 of file CommonParser.hpp.

Referenced by CommonParser().

rule_t RTT::scripting::CommonParser::notassertingeos

End Of Statement Parser.

Identifies the end of a statement in Orocos scripting.

Definition at line 81 of file CommonParser.hpp.

Referenced by CommonParser(), and RTT::scripting::ScriptParser::ScriptParser().

rule_t RTT::scripting::CommonParser::notassertingidentifier
bool RTT::scripting::CommonParser::skipeol
functor_parser<eol_skip_functor> RTT::scripting::CommonParser::skipper
rule_t RTT::scripting::CommonParser::templ

plain 'C' identifier. Throws if keyword is parsed.

Definition at line 69 of file CommonParser.hpp.

Referenced by CommonParser().

rule_t RTT::scripting::CommonParser::tidentifier

recursive template def.

Definition at line 70 of file CommonParser.hpp.

Referenced by CommonParser(), and RTT::scripting::DataCallParser::DataCallParser().

rule_t RTT::scripting::CommonParser::type_name

See notassertingidentifier, but in lexeme parsing mode.

Definition at line 74 of file CommonParser.hpp.

Referenced by CommonParser(), and RTT::scripting::ConstructorParser::ConstructorParser().


The documentation for this class was generated from the following files: