Author: ai0867
Date: Mon Sep 29 10:38:33 2008
New Revision: 29761

URL: http://svn.gna.org/viewcvs/wesnoth?rev=29761&view=rev
Log:
* Add some comments, TODOs.

Modified:
    trunk/data/tools/wesnoth/wmlgrammar.py
    trunk/data/tools/wmltest

Modified: trunk/data/tools/wesnoth/wmlgrammar.py
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/wesnoth/wmlgrammar.py?rev=29761&r1=29760&r2=29761&view=diff
==============================================================================
--- trunk/data/tools/wesnoth/wmlgrammar.py (original)
+++ trunk/data/tools/wesnoth/wmlgrammar.py Mon Sep 29 10:38:33 2008
@@ -8,6 +8,8 @@
 
 Instead of a tuple, it can instead contain a single string,
  which points to the tag (dictionary key) whose contents should be used.
+The lists themselves can also be replaced by a string, in which case the
+ corresponding part of that tag should be used.
 """
 class Grammar:
     _grammar = {
@@ -78,7 +80,7 @@
     [],
     'panel'),
 'movetype' : (
-    [], #TODO: unfinished (resistance, defense, movement_costs)
+    [], #TODO: unfinished (resistance, defense, movement_costs), problems with 
these are dynamic keys
     [ 'flies', 'name', ]),
 'panel' : (
     [],
@@ -107,6 +109,9 @@
 'server' : (
     [],
     [ 'address', 'name', ]),
+#'status' : (
+#    [ 'gold', 'income', 'num_units', 'panel', 'position', 'side_playing', 
'terrain', 'time_of_day', 'turn', 'villages', 'upkeep', ],
+#TODO: differentiate between theme-terrain, toplevel-terrain and event-terrain
 'terrain' : (
     [],
     [ 'aliasof', 'default_base', 'def_alias', 'editor_group', 'editor_image', 
'gives_income', 'heals', 'hidden', 'id', 'light', 'mvt_alias', 'name', 
'recruit_from', 'recruit_onto', 'string', 'submerge', 'symbol_image', 
'unit_height_adjust', ]),

Modified: trunk/data/tools/wmltest
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/wmltest?rev=29761&r1=29760&r2=29761&view=diff
==============================================================================
--- trunk/data/tools/wmltest (original)
+++ trunk/data/tools/wmltest Mon Sep 29 10:38:33 2008
@@ -7,6 +7,11 @@
 -Include linenumbers and filenames in "complaint messages"
 -Create option to define macros (like MULTIPLAYER or CAMPAIGN_HTTT)
 -Write function to check dependencies
+-Allow for dynamic keys in the grammar, probably use a wildcard,
+    validate it during dependency-checking.
+-Create a way to do linking PLUS some extra tag-specific things.
+-Either create a way to differentiate between keys with the same name
+    depending on context, or get rid of them. ;) (unit_type)
 """
 
 import wesnoth.wmldata as wmldata


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to