Classes | Public Types | Public Member Functions | Public Attributes
FSMParser Class Reference

List of all members.

Classes

struct  TokenizerContext
struct  TokenizerInit

Public Types

typedef Parser::Token< TokenTypeToken
enum  TokenType {
  tkn_null = 0, tkn_text = 1, tkn_fsm, tkn_fsm_start,
  tkn_fsm_bgn, tkn_fsm_end, tkn_state, tkn_call_task,
  tkn_call_fsm, tkn_call_bt, tkn_transitions, tkn_on_event,
  tkn_on_condition, tkn_raise, tkn_states, tkn_next,
  tkn_bopen, tkn_bclose, tkn_fopen, tkn_fclose,
  tkn_semicol, tkn_col, tkn_slesh
}
typedef Parser::TokenStream
< TokenType
tstream

Public Member Functions

string encode (const std::string &data)
bool fsm (tstream &stream, Token &tkn)
bool fsm_bgn (tstream &stream)
bool fsm_start (tstream &stream)
bool fsm_state_body (tstream &stream, size_t end_of_fsm)
bool fsm_states (tstream &stream, size_t end_of_fsm)
 FSMParser (string file)
FSMConstructormain ()
bool name (tstream &stream, string txt, string &output, int &line, int &pos)
bool name (tstream &stream, string txt, string &output)
bool name (tstream &stream, string txt)
bool parse_fsm (tstream &stream)
bool parse_fsm_body (tstream &stream)
void saveReadedChar (TokenizerContext &ctx, char c)
bool search_calls_in_state (tstream &stream, Token &tkn)
bool search_next_in_events (tstream &stream, Token &tkn, bool &found)
bool search_on_conditions_in_transition (tstream &stream, Token &tkn)
bool search_on_events_in_transition (tstream &stream, Token &tkn)
bool search_raise_in_events (tstream &stream, Token &tkn, bool &found)
bool search_raises_in_state (tstream &stream, Token &tkn)
void searchLineInfo (int i, int &line, int &pos)
bool skipComments (TokenizerContext &ctx)
bool textUpTo (tstream &stream, TokenType endTkn, string &output)
bool transition_name (tstream &stream)
bool transitions (tstream &stream)

Public Attributes

Token _curr_fsm
std::string _curr_fsm_name
Token _curr_state
std::string _curr_state_name
FSMConstructor constructor
std::stringstream errors
string filename
std::string fullText
std::vector< int > lines
tstream tokens

Detailed Description

Definition at line 13 of file Parsers_FSM.cpp.


Member Typedef Documentation

Definition at line 91 of file Parsers_FSM.cpp.

Definition at line 90 of file Parsers_FSM.cpp.


Member Enumeration Documentation

Enumerator:
tkn_null 
tkn_text 
tkn_fsm 
tkn_fsm_start 
tkn_fsm_bgn 
tkn_fsm_end 
tkn_state 
tkn_call_task 
tkn_call_fsm 
tkn_call_bt 
tkn_transitions 
tkn_on_event 
tkn_on_condition 
tkn_raise 
tkn_states 
tkn_next 
tkn_bopen 
tkn_bclose 
tkn_fopen 
tkn_fclose 
tkn_semicol 
tkn_col 
tkn_slesh 

Definition at line 15 of file Parsers_FSM.cpp.


Constructor & Destructor Documentation

FSMParser::FSMParser ( string  file) [inline]

Definition at line 434 of file Parsers_FSM.cpp.


Member Function Documentation

string FSMParser::encode ( const std::string &  data) [inline]

Definition at line 253 of file Parsers_FSM.cpp.

bool FSMParser::fsm ( tstream stream,
Token tkn 
) [inline]

Definition at line 93 of file Parsers_FSM.cpp.

bool FSMParser::fsm_bgn ( tstream stream) [inline]

Definition at line 136 of file Parsers_FSM.cpp.

bool FSMParser::fsm_start ( tstream stream) [inline]

Definition at line 122 of file Parsers_FSM.cpp.

bool FSMParser::fsm_state_body ( tstream stream,
size_t  end_of_fsm 
) [inline]

Definition at line 316 of file Parsers_FSM.cpp.

bool FSMParser::fsm_states ( tstream stream,
size_t  end_of_fsm 
) [inline]

Definition at line 326 of file Parsers_FSM.cpp.

Definition at line 447 of file Parsers_FSM.cpp.

bool FSMParser::name ( tstream stream,
string  txt,
string &  output,
int &  line,
int &  pos 
) [inline]

Definition at line 105 of file Parsers_FSM.cpp.

bool FSMParser::name ( tstream stream,
string  txt,
string &  output 
) [inline]

Definition at line 115 of file Parsers_FSM.cpp.

bool FSMParser::name ( tstream stream,
string  txt 
) [inline]

Definition at line 119 of file Parsers_FSM.cpp.

bool FSMParser::parse_fsm ( tstream stream) [inline]

Definition at line 366 of file Parsers_FSM.cpp.

bool FSMParser::parse_fsm_body ( tstream stream) [inline]

Definition at line 355 of file Parsers_FSM.cpp.

void FSMParser::saveReadedChar ( TokenizerContext ctx,
char  c 
) [inline]

Definition at line 408 of file Parsers_FSM.cpp.

bool FSMParser::search_calls_in_state ( tstream stream,
Token tkn 
) [inline]

Definition at line 175 of file Parsers_FSM.cpp.

bool FSMParser::search_next_in_events ( tstream stream,
Token tkn,
bool &  found 
) [inline]

Definition at line 207 of file Parsers_FSM.cpp.

bool FSMParser::search_on_conditions_in_transition ( tstream stream,
Token tkn 
) [inline]

Definition at line 269 of file Parsers_FSM.cpp.

bool FSMParser::search_on_events_in_transition ( tstream stream,
Token tkn 
) [inline]

Definition at line 231 of file Parsers_FSM.cpp.

bool FSMParser::search_raise_in_events ( tstream stream,
Token tkn,
bool &  found 
) [inline]

Definition at line 218 of file Parsers_FSM.cpp.

bool FSMParser::search_raises_in_state ( tstream stream,
Token tkn 
) [inline]

Definition at line 196 of file Parsers_FSM.cpp.

void FSMParser::searchLineInfo ( int  i,
int &  line,
int &  pos 
) [inline]

Definition at line 397 of file Parsers_FSM.cpp.

bool FSMParser::skipComments ( TokenizerContext ctx) [inline]

Definition at line 413 of file Parsers_FSM.cpp.

bool FSMParser::textUpTo ( tstream stream,
TokenType  endTkn,
string &  output 
) [inline]

Definition at line 160 of file Parsers_FSM.cpp.

bool FSMParser::transition_name ( tstream stream) [inline]

Definition at line 149 of file Parsers_FSM.cpp.

bool FSMParser::transitions ( tstream stream) [inline]

Definition at line 292 of file Parsers_FSM.cpp.


Member Data Documentation

Definition at line 442 of file Parsers_FSM.cpp.

Definition at line 443 of file Parsers_FSM.cpp.

Definition at line 444 of file Parsers_FSM.cpp.

Definition at line 445 of file Parsers_FSM.cpp.

Definition at line 439 of file Parsers_FSM.cpp.

std::stringstream FSMParser::errors

Definition at line 440 of file Parsers_FSM.cpp.

Definition at line 436 of file Parsers_FSM.cpp.

std::string FSMParser::fullText

Definition at line 437 of file Parsers_FSM.cpp.

std::vector<int> FSMParser::lines

Definition at line 441 of file Parsers_FSM.cpp.

Definition at line 438 of file Parsers_FSM.cpp.


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


decision_making_parser
Author(s):
autogenerated on Wed Aug 26 2015 11:16:57