XmlEda
From Clothbot
(Difference between revisions)
Revision as of 00:51, 31 May 2008 (edit) AndrewPlumb (Talk | contribs) (→Sample Code) ← Previous diff |
Revision as of 00:52, 31 May 2008 (edit) AndrewPlumb (Talk | contribs) (→Sample Code) Next diff → |
||
Line 13: | Line 13: | ||
* [http://clothbot.com/code/xmleda/ code/xmleda] | * [http://clothbot.com/code/xmleda/ code/xmleda] | ||
- | ** Example 1: Since multi-line comment parsing and escaped end-of-line characters can be one of the more challenging aspects of parser writing, that's what this example exercises. | + | ** Example 1: Since multi-line comment parsing and escaped end-of-line characters can be one of the more challenging aspects of parser writing, that's what this example exercises. It uses the Saxonica parser; see the ''runExample1'' script. |
*** [http://clothbot.com/code/xmleda/example1.txt example1.txt] | *** [http://clothbot.com/code/xmleda/example1.txt example1.txt] | ||
*** [http://clothbot.com/code/xmleda/example1.xml example1.xml] | *** [http://clothbot.com/code/xmleda/example1.xml example1.xml] |
Revision as of 00:52, 31 May 2008
Contents |
XML EDA
HDL Parsing using XSLT 2.0
Why XSLT 2.0?
- Has regular expression support.
- Primary language parser itself can be transformed via XSLT into application-specific transforms.
- Primary language parser could be transformed into Lex/Yacc or JavaCC compile-able code.
- Easy to maintain
Sample Code
- code/xmleda
- Example 1: Since multi-line comment parsing and escaped end-of-line characters can be one of the more challenging aspects of parser writing, that's what this example exercises. It uses the Saxonica parser; see the runExample1 script.