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>t026actions</title>
      6 
      7 <!-- ANTLR includes -->
      8 <script type="text/javascript" src="../../lib/antlr3-all.js"></script>
      9 <script type="text/javascript" src="t026actionsLexer.js"></script>
     10 <script type="text/javascript" src="t026actionsParser.js"></script>
     11 
     12 
     13 <!-- JsUnit include -->
     14 <script type="text/javascript" src="../jsunit/app/jsUnitCore.js"></script>
     15 
     16 <!-- Test Code -->
     17 <script type="text/javascript">
     18     function testValid1() {
     19         var stream = new org.antlr.runtime.ANTLRStringStream("foobar _Ab98 \n A12sdf"),
     20             lexer = new t026actionsLexer(stream),
     21             tstream = new org.antlr.runtime.CommonTokenStream(lexer),
     22             parser = new t026actionsParser(tstream),
     23             token;
     24 
     25         parser.emitErrorMessage = function() {};
     26         parser.prog();
     27         assertArrayEquals(parser.xlog, ["init;", "after;", "finally;"]);
     28         assertArrayEquals(lexer.xlog, ["action;", "foobar 4 1 0 -1 0 0 5", "attribute;", "action;", "_Ab98 4 1 7 -1 0 7 11", "attribute;", "action;", "A12sdf 4 2 1 -1 0 15 20", "attribute;"]);
     29     }
     30 </script>
     31 
     32 </head>
     33 <body>
     34     <h1>t026actions</h1>
     35 </body>
     36 </html>
     37