home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / xampp / xampp-cocoon-addon-1.4.9-installer.exe / grm.xlex < prev    next >
Encoding:
Extensible Markup Language  |  2004-07-12  |  3.0 KB  |  109 lines

  1. <?xml version="1.0" standalone="no"?>
  2. <!--
  3.   Copyright 1999-2004 The Apache Software Foundation
  4.  
  5.   Licensed under the Apache License, Version 2.0 (the "License");
  6.   you may not use this file except in compliance with the License.
  7.   You may obtain a copy of the License at
  8.  
  9.       http://www.apache.org/licenses/LICENSE-2.0
  10.  
  11.   Unless required by applicable law or agreed to in writing, software
  12.   distributed under the License is distributed on an "AS IS" BASIS,
  13.   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14.   See the License for the specific language governing permissions and
  15.   limitations under the License.
  16. -->
  17. <lexicon xmlns="http://chaperon.sourceforge.net/schema/lexicon/1.0">
  18.  
  19.  <lexeme symbol="token_decl">
  20.   <alt>
  21.    <cstring content="%token"/>
  22.    <cstring content="%left"/>
  23.    <cstring content="%right"/>
  24.   </alt>
  25.  </lexeme>
  26.  
  27.  <lexeme symbol="ab_decl">
  28.   <cstring content="%ab"/>
  29.  </lexeme>
  30.  
  31.  <lexeme symbol="start_decl">
  32.   <cstring content="%start"/>
  33.  </lexeme>
  34.  
  35.  <lexeme symbol="ignorabletoken_decl">
  36.   <cstring content="%ignore"/>
  37.  </lexeme>
  38.  
  39.  <lexeme symbol="prec_decl">
  40.   <cstring content="%prec"/>
  41.  </lexeme>
  42.  
  43.  <lexeme symbol="delimiter">
  44.   <cstring content="%%"/>
  45.  </lexeme>
  46.  
  47.  <lexeme symbol="colon">
  48.   <cstring content=":"/>
  49.  </lexeme>
  50.  
  51.  <lexeme symbol="alt">
  52.   <cstring content="|"/>
  53.  </lexeme>
  54.  
  55.  <lexeme symbol="semicolon">
  56.   <cstring content=";"/>
  57.  </lexeme>
  58.  
  59.  <lexeme symbol="string">
  60.   <concat>
  61.    <cstring content="""/>
  62.    <alt minOccurs="1" maxOccurs="*">
  63.     <cclass exclusive="true"><cset content="\""/></cclass>
  64.     <concat><cstring content="\"/><cclass exclusive="true"><cset content="u"/></cclass></concat>
  65.     <concat>
  66.      <cstring content="\u"/>
  67.      <cclass><cinterval min="0" max="9"/><cinterval min="a" max="f"/><cinterval min="A" max="F"/></cclass>
  68.      <cclass><cinterval min="0" max="9"/><cinterval min="a" max="f"/><cinterval min="A" max="F"/></cclass>
  69.      <cclass><cinterval min="0" max="9"/><cinterval min="a" max="f"/><cinterval min="A" max="F"/></cclass>
  70.      <cclass><cinterval min="0" max="9"/><cinterval min="a" max="f"/><cinterval min="A" max="F"/></cclass>
  71.     </concat>
  72.    </alt>
  73.    <cstring content="""/>
  74.   </concat>
  75.  </lexeme>
  76.  
  77.  <lexeme symbol="id">
  78.   <concat>
  79.    <cclass><cinterval min="A" max="Z"/><cinterval min="a" max="z"/></cclass>
  80.    <cclass minOccurs="0" maxOccurs="*">
  81.     <cinterval min="A" max="Z"/><cinterval min="a" max="z"/><cinterval min="0" max="9"/><cset content="_"/>
  82.    </cclass>
  83.   </concat>
  84.  </lexeme>
  85.  
  86.  <lexeme>
  87.   <alt>
  88.    <concat>
  89.     <cstring content="//"/>
  90.     <cclass exclusive="true" minOccurs="0" maxOccurs="*">
  91.      <cset content=" "/>
  92.     </cclass>
  93.    </concat>
  94.    <concat>
  95.     <cstring content="/*"/>
  96.     <alt minOccurs="0" maxOccurs="*">
  97.      <cclass exclusive="true"><cset content="*"/></cclass>
  98.      <concat><cstring content="*"/><cclass exclusive="true"><cset content="/"/></cclass></concat>
  99.     </alt>
  100.     <cstring content="*/"/>
  101.    </concat>
  102.   </alt>
  103.  </lexeme>
  104.  
  105.  <lexeme> 
  106.   <cclass maxOccurs="*"><cset content=" "/></cclass>
  107.  </lexeme>
  108. </lexicon>
  109.