Jump to: navigation, search

XQuery Development Tools/Extension points

< XQuery Development Tools
Revision as of 11:25, 16 July 2010 by Villard.us.ibm.com (Talk | contribs) (Describe tokenizer extension point.)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This page describes XQDT extension points.

Customizing lexer and parser

XQDT provides a tokenizer and an ad-hoc incremental parser for the XQuery family languages standardized (or being standardized) by the W3C. Vendors-specific language extension can be achieved by providing vendor-specific lexer and parser, using the following extension points:

- org.eclipse.wst.xquery.sse.core.tokenizer: XQuery tokenizer. Must implement ITokenizer. XQDT tokenizer is based on JFlex. Since JFlex does not come with a extension mechanism, one solution is for each vendor to change directly the base tokenizer and to manually patch any changes.

- to be defined: parser extension point.