Classes | |
struct | push |
struct | push_leaf |
struct | new_ar |
struct | reduce |
struct | discard |
struct | discard_ar |
struct | jdl_grammar |
class | jdl_parser |
class | parser_stack |
class | component |
class | abstract_leaf |
class | int_node |
class | float_node |
class | string_node |
class | string_literal_node |
class | abstract_node |
class | binary_expr_node |
class | unary_expr_node |
class | attribute_definition_node |
class | conditional_expr |
class | dot_node |
class | bracket_node |
class | term_node |
class | list_node |
class | func_call_node |
class | semantic_error |
class | parse_error |
class | const_visitor |
class | visitor |
class | base_const_visitor |
class | base_visitor |
class | dump_visitor |
class | check_type_visitor |
class | find_visitor |
class | dag_visitor |
class | collection_visitor |
Enumerations | |
enum | Errors { attribute_expected, expr_expected, attrname_expected, semicolon_expected, colon_expected, right_quad_par_expected, right_round_par_expected, right_graph_par_expected, question_mark_expected, left_round_par_expected } |
Functions | |
assertion< Errors > | expect_attribute (attribute_expected) |
assertion< Errors > | expect_expr (expr_expected) |
assertion< Errors > | expect_attrname (expect_attrname) |
assertion< Errors > | expect_semicolon (semicolon_expected) |
assertion< Errors > | expect_colon (colon_expected) |
assertion< Errors > | expect_right_quad_par (right_quad_par_expected) |
assertion< Errors > | expect_right_round_par (right_round_par_expected) |
assertion< Errors > | expect_right_graph_par (right_graph_par_expected) |
assertion< Errors > | expect_question_mark (question_mark_expected) |
assertion< Errors > | expect_left_round_par (left_round_par_expected) |
void | create (attribute_definition_node &node, parser_stack< boost::shared_ptr< component > > &stack) |
void | create (conditional_expr &node, parser_stack< boost::shared_ptr< component > > &stack) |
void | create (binary_expr_node &node, parser_stack< boost::shared_ptr< component > > &stack) |
void | create (bracket_node &node, parser_stack< boost::shared_ptr< component > > &stack) |
void | create (dot_node &node, parser_stack< boost::shared_ptr< component > > &stack) |
void | create (term_node &node, parser_stack< boost::shared_ptr< component > > &stack) |
void | create (list_node &node, parser_stack< boost::shared_ptr< component > > &stack) |
void | create (func_call_node &node, parser_stack< boost::shared_ptr< component > > &stack) |
void | create (unary_expr_node &node, parser_stack< boost::shared_ptr< component > > &stack) |
void | create_activation_record (parser_stack< boost::shared_ptr< component > > &node_stack) |
void | reduce_stack (parser_stack< boost::shared_ptr< component > > &node_stack) |
void | discard_activation_record (parser_stack< boost::shared_ptr< component > > &node_stack) |
bool | parse_string (jdl_parser &parser, std::string const &jdl) |
bool | parse_file (jdl_parser &parser, std::string const &file_name) |
void | print_tree (component *root) |
std::pair< int, int > | iter2RowCol (std::string const &str, std::string const &where) |
void | indent (int n, ostream &out) |
string | open_file (const string &file_name) |
std::pair< int, int > | iter2RowCol (string const &str, string const &where) |
Variables | |
guard< Errors > | expr_guard |
enum jdl::Errors |
Definition at line 50 of file jdl_grammar.hpp.
void jdl::create | ( | unary_expr_node & | node, | |
parser_stack< boost::shared_ptr< component > > & | stack | |||
) |
Definition at line 144 of file tree.cpp.
References jdl::unary_expr_node::operand(), and jdl::unary_expr_node::set_operator().
void jdl::create | ( | func_call_node & | node, | |
parser_stack< boost::shared_ptr< component > > & | stack | |||
) |
Definition at line 134 of file tree.cpp.
References jdl::func_call_node::args(), and jdl::func_call_node::func_name().
void jdl::create | ( | list_node & | node, | |
parser_stack< boost::shared_ptr< component > > & | stack | |||
) |
void jdl::create | ( | term_node & | node, | |
parser_stack< boost::shared_ptr< component > > & | stack | |||
) |
void jdl::create | ( | dot_node & | node, | |
parser_stack< boost::shared_ptr< component > > & | stack | |||
) |
Definition at line 103 of file tree.cpp.
References jdl::dot_node::left(), and jdl::dot_node::right().
void jdl::create | ( | bracket_node & | node, | |
parser_stack< boost::shared_ptr< component > > & | stack | |||
) |
Definition at line 92 of file tree.cpp.
References jdl::bracket_node::left(), and jdl::bracket_node::right().
void jdl::create | ( | binary_expr_node & | node, | |
parser_stack< boost::shared_ptr< component > > & | stack | |||
) |
Definition at line 79 of file tree.cpp.
References jdl::binary_expr_node::left_operand(), jdl::binary_expr_node::right_operand(), and jdl::binary_expr_node::set_operator().
void jdl::create | ( | conditional_expr & | node, | |
parser_stack< boost::shared_ptr< component > > & | stack | |||
) |
Definition at line 65 of file tree.cpp.
References jdl::conditional_expr::set_condition(), jdl::conditional_expr::set_else(), and jdl::conditional_expr::set_then().
void jdl::create | ( | attribute_definition_node & | node, | |
parser_stack< boost::shared_ptr< component > > & | stack | |||
) |
Definition at line 53 of file tree.cpp.
References jdl::attribute_definition_node::set_name(), and jdl::attribute_definition_node::set_value().
Referenced by jdl::push< node_type >::operator()().
void jdl::create_activation_record | ( | parser_stack< boost::shared_ptr< component > > & | node_stack | ) |
void jdl::discard_activation_record | ( | parser_stack< boost::shared_ptr< component > > & | node_stack | ) |
Definition at line 45 of file tree.cpp.
Referenced by jdl::discard_ar::operator()(), and jdl::discard::operator()().
assertion<Errors> jdl::expect_attribute | ( | attribute_expected | ) |
Referenced by jdl::jdl_grammar::definition< ScannerT >::definition().
assertion<Errors> jdl::expect_attrname | ( | expect_attrname | ) |
Referenced by jdl::jdl_grammar::definition< ScannerT >::definition().
assertion<Errors> jdl::expect_colon | ( | colon_expected | ) |
Referenced by jdl::jdl_grammar::definition< ScannerT >::definition().
assertion<Errors> jdl::expect_expr | ( | expr_expected | ) |
Referenced by jdl::jdl_grammar::definition< ScannerT >::definition().
assertion<Errors> jdl::expect_left_round_par | ( | left_round_par_expected | ) |
Referenced by jdl::jdl_grammar::definition< ScannerT >::definition().
assertion<Errors> jdl::expect_question_mark | ( | question_mark_expected | ) |
Referenced by jdl::jdl_grammar::definition< ScannerT >::definition().
assertion<Errors> jdl::expect_right_graph_par | ( | right_graph_par_expected | ) |
Referenced by jdl::jdl_grammar::definition< ScannerT >::definition().
assertion<Errors> jdl::expect_right_quad_par | ( | right_quad_par_expected | ) |
Referenced by jdl::jdl_grammar::definition< ScannerT >::definition().
assertion<Errors> jdl::expect_right_round_par | ( | right_round_par_expected | ) |
Referenced by jdl::jdl_grammar::definition< ScannerT >::definition().
assertion<Errors> jdl::expect_semicolon | ( | semicolon_expected | ) |
Referenced by jdl::jdl_grammar::definition< ScannerT >::definition().
void jdl::indent | ( | int | n, | |
ostream & | out | |||
) |
Definition at line 36 of file utils.cpp.
Referenced by graph::node::print(), jdl::dump_visitor::visit(), and graph::dump_visitor::visit().
std::pair<int, int> jdl::iter2RowCol | ( | string const & | str, | |
string const & | where | |||
) |
std::pair<int, int> jdl::iter2RowCol | ( | std::string const & | str, | |
std::string const & | where | |||
) |
string jdl::open_file | ( | const string & | file_name | ) |
bool jdl::parse_file | ( | jdl_parser & | parser, | |
std::string const & | file_name | |||
) | [inline] |
bool jdl::parse_string | ( | jdl_parser & | parser, | |
std::string const & | jdl | |||
) |
Definition at line 22 of file jdl_parser.cpp.
References attribute_expected, colon_expected, iter2RowCol(), jdl::jdl_parser::parse(), right_graph_par_expected, right_quad_par_expected, right_round_par_expected, semicolon_expected, and jdl::semantic_error::where.
Referenced by parse_file().
void jdl::print_tree | ( | component * | root | ) |
void jdl::reduce_stack | ( | parser_stack< boost::shared_ptr< component > > & | node_stack | ) |
guard<Errors> jdl::expr_guard |
Definition at line 74 of file jdl_grammar.hpp.
Referenced by jdl::jdl_grammar::definition< ScannerT >::definition().