home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" standalone="no"?>
- <!--
- Copyright 1999-2004 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- -->
- <lexicon xmlns="http://chaperon.sourceforge.net/schema/lexicon/1.0">
-
- <lexeme symbol="token_decl">
- <alt>
- <cstring content="%token"/>
- <cstring content="%left"/>
- <cstring content="%right"/>
- </alt>
- </lexeme>
-
- <lexeme symbol="ab_decl">
- <cstring content="%ab"/>
- </lexeme>
-
- <lexeme symbol="start_decl">
- <cstring content="%start"/>
- </lexeme>
-
- <lexeme symbol="ignorabletoken_decl">
- <cstring content="%ignore"/>
- </lexeme>
-
- <lexeme symbol="prec_decl">
- <cstring content="%prec"/>
- </lexeme>
-
- <lexeme symbol="delimiter">
- <cstring content="%%"/>
- </lexeme>
-
- <lexeme symbol="colon">
- <cstring content=":"/>
- </lexeme>
-
- <lexeme symbol="alt">
- <cstring content="|"/>
- </lexeme>
-
- <lexeme symbol="semicolon">
- <cstring content=";"/>
- </lexeme>
-
- <lexeme symbol="string">
- <concat>
- <cstring content="""/>
- <alt minOccurs="1" maxOccurs="*">
- <cclass exclusive="true"><cset content="\""/></cclass>
- <concat><cstring content="\"/><cclass exclusive="true"><cset content="u"/></cclass></concat>
- <concat>
- <cstring content="\u"/>
- <cclass><cinterval min="0" max="9"/><cinterval min="a" max="f"/><cinterval min="A" max="F"/></cclass>
- <cclass><cinterval min="0" max="9"/><cinterval min="a" max="f"/><cinterval min="A" max="F"/></cclass>
- <cclass><cinterval min="0" max="9"/><cinterval min="a" max="f"/><cinterval min="A" max="F"/></cclass>
- <cclass><cinterval min="0" max="9"/><cinterval min="a" max="f"/><cinterval min="A" max="F"/></cclass>
- </concat>
- </alt>
- <cstring content="""/>
- </concat>
- </lexeme>
-
- <lexeme symbol="id">
- <concat>
- <cclass><cinterval min="A" max="Z"/><cinterval min="a" max="z"/></cclass>
- <cclass minOccurs="0" maxOccurs="*">
- <cinterval min="A" max="Z"/><cinterval min="a" max="z"/><cinterval min="0" max="9"/><cset content="_"/>
- </cclass>
- </concat>
- </lexeme>
-
- <lexeme>
- <alt>
- <concat>
- <cstring content="//"/>
- <cclass exclusive="true" minOccurs="0" maxOccurs="*">
- <cset content="
"/>
- </cclass>
- </concat>
- <concat>
- <cstring content="/*"/>
- <alt minOccurs="0" maxOccurs="*">
- <cclass exclusive="true"><cset content="*"/></cclass>
- <concat><cstring content="*"/><cclass exclusive="true"><cset content="/"/></cclass></concat>
- </alt>
- <cstring content="*/"/>
- </concat>
- </alt>
- </lexeme>
-
- <lexeme>
- <cclass maxOccurs="*"><cset content="
"/></cclass>
- </lexeme>
- </lexicon>
-