XmlEda

From Clothbot

(Difference between revisions)
Jump to: navigation, search
Revision as of 05:43, 8 November 2008 (edit)
AndrewPlumb (Talk | contribs)
(Sample Code)
← Previous diff
Current revision (05:44, 8 November 2008) (edit)
AndrewPlumb (Talk | contribs)
(Sample Code)
 
Line 19: Line 19:
*** [http://clothbot.com/code/xmleda/runExample1 runExample1] *** [http://clothbot.com/code/xmleda/runExample1 runExample1]
-_Note:_ If/when the [https://sourceforge.net/projects/xmleda/ XML EDA SourceForge Project] goes active, I'll start uploading some more useful works in progress.+'''Note:''' If/when the [https://sourceforge.net/projects/xmleda/ XML EDA SourceForge Project] goes active, I'll start uploading some more useful works in progress.
==References== ==References==

Current revision

Contents

XML EDA

A place to collect my ideas revolving around 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.

Note: If/when the XML EDA SourceForge Project goes active, I'll start uploading some more useful works in progress.

References

Personal tools