• 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>t030specialStates</title>
6
7<!-- ANTLR includes -->
8<script type="text/javascript" src="../../lib/antlr3-all.js"></script>
9<script type="text/javascript" src="t030specialStatesLexer.js"></script>
10<script type="text/javascript" src="t030specialStatesParser.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        this.cond = true;
20        TParser.superclass.constructor.apply(this, arguments);
21    }
22    org.antlr.lang.extend(TParser, t030specialStatesParser);
23
24
25    function testValid1() {
26        var cstream = new org.antlr.runtime.ANTLRStringStream("foo"),
27            lexer = new t030specialStatesLexer(cstream),
28            tstream = new org.antlr.runtime.CommonTokenStream(lexer),
29            parser = new TParser(tstream);
30
31        var events = parser.r();
32    }
33
34    function testValid2() {
35        var cstream = new org.antlr.runtime.ANTLRStringStream("foo name1"),
36            lexer = new t030specialStatesLexer(cstream),
37            tstream = new org.antlr.runtime.CommonTokenStream(lexer),
38            parser = new TParser(tstream);
39
40        var events = parser.r();
41    }
42
43    function testValid3() {
44        var cstream = new org.antlr.runtime.ANTLRStringStream("bar name1"),
45            lexer = new t030specialStatesLexer(cstream),
46            tstream = new org.antlr.runtime.CommonTokenStream(lexer),
47            parser = new TParser(tstream);
48
49        parser.cond = false;
50        var events = parser.r();
51    }
52
53    function testValid4() {
54        var cstream = new org.antlr.runtime.ANTLRStringStream("bar name1 name2"),
55            lexer = new t030specialStatesLexer(cstream),
56            tstream = new org.antlr.runtime.CommonTokenStream(lexer),
57            parser = new TParser(tstream);
58
59        parser.cond = false;
60        var events = parser.r();
61    }
62
63</script>
64
65</head>
66<body>
67    <h1>t030specialStates</h1>
68</body>
69</html>
70