The Battle for Wesnoth  1.15.3+dev
Namespaces | Functions
lua_wml.cpp File Reference
#include "scripting/lua_wml.hpp"
#include "scripting/lua_kernel_base.hpp"
#include "scripting/lua_common.hpp"
#include "serialization/string_utils.hpp"
#include "serialization/schema_validator.hpp"
#include "serialization/parser.hpp"
#include "serialization/preprocessor.hpp"
#include "variable.hpp"
#include <fstream>
#include "lua/lua.h"
#include "lua/lauxlib.h"
Include dependency graph for lua_wml.cpp:

Go to the source code of this file.

Namespaces

 lua_wml
 

Functions

static int lua_wml::intf_wml_tostring (lua_State *L)
 Dumps a wml table or userdata wml object into a pretty string. More...
 
static int lua_wml::intf_load_wml (lua_State *L)
 Loads a WML file into a config. More...
 
static int lua_wml::intf_parse_wml (lua_State *L)
 Parses a WML string into a config; does not preprocess or validate. More...
 
static int lua_wml::intf_clone_wml (lua_State *L)
 Returns a clone (deep copy) of the passed config, which can be either a normal config or a vconfig If it is a vconfig, the underlying config is also cloned. More...
 
static int lua_wml::intf_wml_interpolate (lua_State *L)
 Interpolates variables into a WML table, including [insert_tag] Arg 1: WML table to interpolate into Arg 2: WML table of variables. More...
 
static int lua_wml::intf_wml_matches_filter (lua_State *L)
 Tests if a WML table matches a filter Arg 1: table to test Arg 2: filter. More...
 
static int lua_wml::intf_wml_merge (lua_State *L)
 Merges two WML tables Arg 1: base table Arg 2: table to merge in. More...
 
static int lua_wml::intf_wml_diff (lua_State *L)
 Computes a diff of two WML tables Arg 1: left table Arg 2: right table. More...
 
static int lua_wml::intf_wml_patch (lua_State *L)
 Applies a diff to a WML table Arg 1: base table Arg 2: WML diff. More...
 
static int lua_wml::intf_wml_equal (lua_State *L)
 Tests if two WML tables are equal (have the same keys and values, same tags, recursively) Arg 1: left table Arg 2: right table. More...
 
static int lua_wml::intf_wml_valid (lua_State *L)
 Tests if a table represents a valid WML table Arg 1: table. More...
 
int lua_wml::luaW_open (lua_State *L)