#include "global.hpp"
#include <algorithm>
#include <boost/lexical_cast.hpp>
#include <cmath>
#include <iostream>
#include <vector>
#include "formula.hpp"
#include "formula_callable.hpp"
#include "formula_function.hpp"
#include "formula_tokenizer.hpp"
#include "map_utils.hpp"
Go to the source code of this file.
Namespaces | |
namespace | game_logic |
Typedefs | |
typedef std::map< std::string, expression_ptr > | game_logic::expr_table |
typedef boost::shared_ptr < expr_table > | game_logic::expr_table_ptr |
Functions | |
int | game_logic::operator_precedence (const token &t) |
expression_ptr | game_logic::parse_expression (const token *i1, const token *i2, function_symbol_table *symbols) |
void | game_logic::parse_function_args (const token *&i1, const token *i2, std::vector< std::string > *res) |
void | game_logic::parse_args (const token *i1, const token *i2, std::vector< expression_ptr > *res, function_symbol_table *symbols) |
void | game_logic::parse_set_args (const token *i1, const token *i2, std::vector< expression_ptr > *res, function_symbol_table *symbols) |
void | game_logic::parse_where_clauses (const token *i1, const token *i2, expr_table_ptr res, function_symbol_table *symbols) |
expression_ptr | game_logic::parse_expression (const token *i1, const token *i2, function_symbol_table *symbols) |
const formula_callable& base_ |
Definition at line 322 of file formula.cpp.
expression_ptr body_ |
Definition at line 348 of file formula.cpp.
const_formula_ptr calculation |
Definition at line 434 of file formula.cpp.
expr_table_ptr clauses_ |
Definition at line 349 of file formula.cpp.
int i_ |
Definition at line 388 of file formula.cpp.
std::string id_ |
Definition at line 366 of file formula.cpp.
std::vector<expression_ptr> items_ |
Definition at line 108 of file formula.cpp.
expression_ptr key_ |
Definition at line 237 of file formula.cpp.
expression_ptr left_ |
Definition at line 217 of file formula.cpp.
Definition at line 163 of file formula.cpp.
OP op_ |
Definition at line 158 of file formula.cpp.
expression_ptr operand_ |
Definition at line 159 of file formula.cpp.
int pos |
Definition at line 433 of file formula.cpp.
Referenced by cutter::add_sub_image(), ai::best_defensive_position(), help::convert_to_wml(), gui::menu::draw(), gui::menu::erase_item(), utils::escape(), help::escape(), dialogs::file_dialog::format_dirname(), preprocessor_data::get_chunk(), gui::textbox::handle_event(), gamemap::is_starting_position(), gui::menu::item_ends_with_image(), gui::menu::basic_sorter::less(), preprocessor_streambuf::lineno_string(), gui::scrollbar::move_position(), open_connection(), gamemap::overlay(), terrain_builder::parse_config(), help::parse_text(), play_controller::place_sides_in_preferred_locations(), placing_score(), ai::power_projection(), mp::create::process_event(), config::remove_child(), terrain_builder::replace_token(), save_image(), simple_wml::uncompress_buffer(), and utils::unescape().
expression_ptr right_ |
Definition at line 217 of file formula.cpp.
Definition at line 437 of file formula.cpp.
std::vector<substitution> subs_ |
Definition at line 438 of file formula.cpp.
function_symbol_table* symbols_ |
Definition at line 88 of file formula.cpp.
expr_table_ptr table_ |
Definition at line 323 of file formula.cpp.
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |