Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
39d9c746
Commit
39d9c746
authored
Feb 15, 2001
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplified now we've got only one parser to deal with instead of
three.
parent
a3512d46
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
28 deletions
+3
-28
lib/python/TAL/README
lib/python/TAL/README
+3
-28
No files found.
lib/python/TAL/README
View file @
39d9c746
...
...
@@ -37,14 +37,7 @@ How To Play
The script driver.py takes an XML file with TAL markup as argument and
writes the expanded version to standard output. The filename argument
defaults to test/test1.xml. The script can use three different TAL
implementations, from slowest to fastest:
-p: parsed (directly from XML to intermediate code which generates XML)
-c: compiled (from XML to DOM to intermediate code which generates XML)
-v: visiting (from XML to DOM, then from DOM to DOM, which is printed)
Parsed mode is currently the default.
defaults to test/test1.xml.
Regression test
---------------
...
...
@@ -52,18 +45,12 @@ Regression test
There are a number of test cases in the test subdirectory, named
test/test<number>.xml. The Python script ./runtest.py runs
./driver.py for each test case, and should print "<file> OK" for each
testcase. You can pass it command line options like -c or -m which
will be passed on to driver.py; note that in this case some tests will
fail, and a diff will be printed.
testcase.
What's Here
-----------
DOMVisitor.py base class to create DOM visitor classes
CopyingDOMVisitor.py class to copy DOM trees
TALVisitor.py class to copy DOM trees with TAL expansion
DummyEngine.py simple-minded TALES execution engine
TALCompiler.py class to compile DOM trees to intermediate code
TALInterpreter.py class to interpret intermediate code
TALGenerator.py class to generate intermediate code
XMLParser.py base class to parse XML, avoiding DOM
...
...
@@ -85,16 +72,4 @@ Creations and can be redistributed under the Zope Public License.
TO DO
-----
Here are some things that should be done.
- Provide a dummy implementation of evaluateStructure()?
It's unclear on what to do about these items:
- A comment (or other non-element node) before the documentElement.
- The DOMVisitor class assumes that only Document and Element nodes
have children.
- Empty TAL/METAL attributes (e.g. z:replace="") are currently
ignored; is this a good idea?
- Implement insertStructure() properly.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment