formula.cpp File Reference

#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"

Include dependency graph for formula.cpp:

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)


Variable Documentation

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

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