Home | History | Annotate | Download | only in grammars
      1 <?xml version="1.0" encoding="ISO8859-1" ?>
      2 <!--
      3 	Test grammar
      4 	hello $SLOT | hello
      5 -->
      6 <grammar xml:lang="en-us" version="1.0" root="ROOT">
      7 <meta name="word_penalty" content="40" />
      8       
      9 <rule id="ROOT" scope="public">
     10   <one-of>
     11 	  <item><ruleref uri="#Phone"/>
     12 		<tag>meaning=Phone.V;</tag>
     13 	  </item>
     14   </one-of>
     15 </rule>
     16 
     17 <rule id="Phone">
     18   <item>
     19     <tag>C=(C?C:''); V=C+V;</tag>
     20        <item>
     21 	  hello
     22 	<tag>V='HI';</tag>
     23        </item>
     24        <item repeat="0-1">
     25 		<ruleref uri="#Names"/>
     26 		<tag>V=Names.V;</tag>
     27        </item>
     28   </item>
     29 </rule>
     30 
     31 
     32 <rule id="Names" scope="public">
     33   <item>__Names__</item>
     34 </rule>
     35 
     36 </grammar>
     37