XmlEda
From Clothbot
(Difference between revisions)
Revision as of 00:46, 31 May 2008 (edit) AndrewPlumb (Talk | contribs) ← Previous diff |
Revision as of 00:51, 31 May 2008 (edit) AndrewPlumb (Talk | contribs) (→Sample Code) Next diff → |
||
Line 12: | Line 12: | ||
==Sample Code== | ==Sample Code== | ||
- | * [http://clothbot.com/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. | ||
+ | *** [http://clothbot.com/code/xmleda/example1.txt example1.txt] | ||
+ | *** [http://clothbot.com/code/xmleda/example1.xml example1.xml] | ||
+ | *** [http://clothbot.com/code/xmleda/example1.xsl example1.xsl] | ||
+ | *** [http://clothbot.com/code/xmleda/runExample1 runExample1] | ||
==References== | ==References== |
Revision as of 00:51, 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.