• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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>t024finally</title>
6
7<!-- ANTLR includes -->
8<script type="text/javascript" src="../../lib/antlr3-all.js"></script>
9<script type="text/javascript" src="t024finallyLexer.js"></script>
10<script type="text/javascript" src="t024finallyParser.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    var TParser = function() {
19        TParser.superclass.constructor.apply(this, arguments);
20    }
21    org.antlr.lang.extend(TParser, t024finallyParser);
22
23
24    function testValid1() {
25        var cstream = new org.antlr.runtime.ANTLRStringStream("foobar"),
26            lexer = new t024finallyLexer(cstream),
27            tstream = new org.antlr.runtime.CommonTokenStream(lexer),
28            parser = new TParser(tstream);
29
30        var events = parser.prog();
31        assertArrayEquals(events, ["catch", "finally"]);
32    }
33</script>
34
35</head>
36<body>
37    <h1>t024finally</h1>
38</body>
39</html>
40