From Clothbot

Revision as of 05:44, 8 November 2008; AndrewPlumb (Talk | contribs)
(diff) ←Older revision | Current revision | Newer revision→ (diff)
Jump to: navigation, search



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.


Personal tools