XmlEda

From Clothbot

(Difference between revisions)
Jump to: navigation, search
Revision as of 00:52, 31 May 2008 (edit)
AndrewPlumb (Talk | contribs)
(Sample Code)
← Previous diff
Revision as of 00:56, 31 May 2008 (edit)
AndrewPlumb (Talk | contribs)
(XML EDA)
Next diff →
Line 1: Line 1:
=XML EDA= =XML EDA=
-HDL Parsing using XSLT 2.0+A place to collect my ideas revolving around HDL Parsing using XSLT 2.0.
==Why XSLT 2.0?== ==Why XSLT 2.0?==

Revision as of 00:56, 31 May 2008

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.

References

Personal tools