Public Member Functions | Public Attributes | Private Attributes | List of all members
RTT::scripting::CommonParser Class Reference

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

#include <CommonParser.hpp>

Public Member Functions

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

Public Attributes

lexeme_rule_t endofkeyword
 
chset identchar
 
rule_t identifier
 
lexeme_rule_t idlr
 
rule_t idr
 
lexeme_rule_t keyword
 
lexeme_rule_t keywords
 
symbols< nil_t > keywordstable
 
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 notassertingidentifier
 identifier with <template> marks in it More...
 
rule_t templ
 plain 'C' identifier. Throws if keyword is parsed. More...
 
rule_t tidentifier
 recursive template def. More...
 
rule_t type_name
 See notassertingidentifier, but in lexeme parsing mode. More...
 
rule_t eos
 
rule_t notassertingeos
 
lexeme_rule_t leos
 
bool skipeol
 Saves eol skipping state. More...
 
functor_parser< eol_skip_functorskipper
 

Private Attributes

std::string lastparsedident
 

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 ( )

Definition at line 53 of file CommonParser.cpp.

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.

Member Data Documentation

lexeme_rule_t RTT::scripting::CommonParser::endofkeyword

Definition at line 61 of file CommonParser.hpp.

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.

chset RTT::scripting::CommonParser::identchar

Definition at line 57 of file CommonParser.hpp.

rule_t RTT::scripting::CommonParser::identifier

Definition at line 68 of file CommonParser.hpp.

lexeme_rule_t RTT::scripting::CommonParser::idlr

Definition at line 67 of file CommonParser.hpp.

rule_t RTT::scripting::CommonParser::idr

Definition at line 66 of file CommonParser.hpp.

lexeme_rule_t RTT::scripting::CommonParser::keyword

Definition at line 61 of file CommonParser.hpp.

lexeme_rule_t RTT::scripting::CommonParser::keywords

Definition at line 61 of file CommonParser.hpp.

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

Definition at line 59 of file CommonParser.hpp.

std::string RTT::scripting::CommonParser::lastparsedident
private

Definition at line 54 of file CommonParser.hpp.

lexeme_rule_t RTT::scripting::CommonParser::leos

Definition at line 82 of file CommonParser.hpp.

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.

lexeme_rule_t RTT::scripting::CommonParser::lexeme_notassertingidentifier

See identifier, but in lexeme parsing mode.

Definition at line 73 of file CommonParser.hpp.

rule_t RTT::scripting::CommonParser::notassertingeos

Definition at line 81 of file CommonParser.hpp.

rule_t RTT::scripting::CommonParser::notassertingidentifier

identifier with <template> marks in it

Definition at line 71 of file CommonParser.hpp.

bool RTT::scripting::CommonParser::skipeol

Saves eol skipping state.

Definition at line 85 of file CommonParser.hpp.

functor_parser<eol_skip_functor> RTT::scripting::CommonParser::skipper

Definition at line 86 of file CommonParser.hpp.

rule_t RTT::scripting::CommonParser::templ

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

Definition at line 69 of file CommonParser.hpp.

rule_t RTT::scripting::CommonParser::tidentifier

recursive template def.

Definition at line 70 of file CommonParser.hpp.

rule_t RTT::scripting::CommonParser::type_name

See notassertingidentifier, but in lexeme parsing mode.

Definition at line 74 of file CommonParser.hpp.


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


rtt
Author(s): RTT Developers
autogenerated on Tue Jun 25 2019 19:33:46