Author: ai0867
Date: Mon Sep 29 10:38:13 2008
New Revision: 29755

URL: http://svn.gna.org/viewcvs/wesnoth?rev=29755&view=rev
Log:
* Add a bit of documentation and TODOs.

Modified:
    trunk/data/tools/wesnoth/wmlgrammar.py
    trunk/data/tools/wesnoth/wmlparser.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=29755&r1=29754&r2=29755&view=diff
==============================================================================
--- trunk/data/tools/wesnoth/wmlgrammar.py (original)
+++ trunk/data/tools/wesnoth/wmlgrammar.py Mon Sep 29 10:38:13 2008
@@ -1,9 +1,10 @@
 """
 This file is used to store the grammar of WML for wmltest.
-Format: The grammar is a dictionary mapping every recognised tag 
- plus the pseudo-tag WML to a pair of lists.
-The first list contains all tags recognised in it,
- the second all keys.
+Format: The grammar is a dictionary mapping every recognised tag
+ plus the pseudo-tag WML to a tuple.
+This tuple consists of the following:
+-A list of all subtags recognised in the tag.
+-A list of all keys recognised in the tag.
 """
 grammar = {
 # This is the top-level pseudo-tag that everything is a child of.

Modified: trunk/data/tools/wesnoth/wmlparser.py
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/wesnoth/wmlparser.py?rev=29755&r1=29754&r2=29755&view=diff
==============================================================================
--- trunk/data/tools/wesnoth/wmlparser.py (original)
+++ trunk/data/tools/wesnoth/wmlparser.py Mon Sep 29 10:38:13 2008
@@ -742,7 +742,7 @@
                     if state == name[1:]:
                         return
                     raise Error(self, "Mismatched closing tag [%s], expected 
[/%s]" % (name, state))
-                #TODO: make a [+tag] properly append to most recent [tag] 
+                #TODO: make a [+tag] properly append to most recent [tag]
                 # The below is an ugly hack, but better than keeping the '+' 
in the tag name.
                 elif name[0] == '+':
                     name = name[1:]

Modified: trunk/data/tools/wmltest
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/wmltest?rev=29755&r1=29754&r2=29755&view=diff
==============================================================================
--- trunk/data/tools/wmltest (original)
+++ trunk/data/tools/wmltest Mon Sep 29 10:38:13 2008
@@ -2,7 +2,11 @@
 """
 wmltest -- tool to test the integrity and meaning of WML.
 
-Run without arguments to see usage.
+Use --help to see usage.
+TODO:
+-Include linenumbers and filenames in "complaint messages"
+-Create option to define macros (like MULTIPLAYER or CAMPAIGN_HTTT)
+-Write function to check dependencies
 """
 
 import wesnoth.wmldata as wmldata
@@ -43,7 +47,7 @@
     import optparse, subprocess, os, codecs, sys
 
     # Ugly hack to force the output of UTF-8.
-    # This prevents us from crashing when we're being verbose 
+    # This prevents us from crashing when we're being verbose
     #  and encounter a non-ascii character.
     sys.stdout = codecs.getwriter('utf-8')(sys.stdout)
 


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

Reply via email to