Home | History | Annotate | Download | only in functional
      1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
      3 <head>
      4 <meta http-equiv="content-type" content="text/html;charset=utf-8" />
      5 <title>t038lexerRuleLabel</title>
      6 
      7 <!-- ANTLR includes -->
      8 <script type="text/javascript" src="../../lib/antlr3-all.js"></script>
      9 <script type="text/javascript" src="t038lexerRuleLabel.js"></script>
     10 
     11 <!-- JsUnit include -->
     12 <script type="text/javascript" src="../jsunit/app/jsUnitCore.js"></script>
     13 
     14 <!-- Test Code -->
     15 <script type="text/javascript">
     16     var TLexer = function() {
     17         TLexer.superclass.constructor.apply(this, arguments);
     18     };
     19     org.antlr.lang.extend(TLexer, t038lexerRuleLabel, {
     20         recover: function(input, re) { throw re; }
     21     });
     22 
     23     function testValid1() {
     24         var stream = new org.antlr.runtime.ANTLRStringStream("a  2"),
     25             lexer = new TLexer(stream),
     26             token;
     27 
     28         while (true) {
     29             token = lexer.nextToken();
     30             if (token.getType()===org.antlr.runtime.Token.EOF) {
     31                 break;
     32             }
     33         }
     34     }
     35 </script>
     36 
     37 </head>
     38 <body>
     39     <h1>t038lexerRuleLabel</h1>
     40 </body>
     41 </html>
     42