All pastes #188580 Raw Edit

Untitled

public text v1 · immutable
·published 2006-10-02 09:05 UTC
rendered paste body
protected PRAGMA
options {
    paraphrase="pragma expression";
    testLiterals=false;
}:
    "(#" WS PRAGMA_QNAME (WS ( ~( '#' ) )* )? "#)"
    ;

protected PRAGMA_QNAME
:
    NCNAME ( ':' NCNAME )?
    ;

protected PRAGMA_CONTENTS
:
    ( ~( '#' ) )+
    ;

------------- Used in NEXT_TOKEN: ---------
[snip]

XML_PI_END { $setType(XML_PI_END); }
|
XML_CDATA_END { $setType(XML_CDATA_END); }
|
PRAGMA { $setType(PRAGMA); }
;