simpleparse.examples.vrml_erronfail | index /home/mcfletch/pylive/simpleparse/examples/vrml_erronfail.py |
VRML97-compliant Parser
This example is a full VRML97 parser, originally created
for the mcf.vrml VRML-processing system. It supports all
VRML97 constructs, and should be correct for any VRML97
content you can produce. The parser is fairly fast
(parsing around 280,000 cps on a 1GHz Athlon machine).
This is the errorOnFail version of the grammar, otherwise
identical to the vrml.py module. Note: there is basically
no speed penalty for the errorOnFail version compared to
the original version, as the errorOnFail code is not touched
unless a syntax error is actually found in the input text.
Modules | ||||||
|
Functions | ||
|
Data | ||
VRMLPARSERDEF = "header := -[\\n]*\nvrmlFile := heade... := ( [ \\011-\\015,]+ / ('#',-'\\012'*,'\\n')+ )*\n" |