aboutsummaryrefslogtreecommitdiff
path: root/antlr-3.4/runtime/JavaScript/tests/functional/t040bug80.html
blob: 2b96713d3d504f38908cb8ccc2eb27a8bcc193cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<title>t040bug80</title>

<!-- ANTLR includes -->
<script type="text/javascript" src="../../lib/antlr3-all.js"></script>
<script type="text/javascript" src="t040bug80.js"></script>

<!-- JsUnit include -->
<script type="text/javascript" src="../jsunit/app/jsUnitCore.js"></script>

<!-- Test Code -->
<script type="text/javascript">
    var TLexer = function() {
        TLexer.superclass.constructor.apply(this, arguments);
    };
    org.antlr.lang.extend(TLexer, t040bug80, {
        recover: function(input, re) { throw re; }
    });

    function testValid1() {
        var stream = new org.antlr.runtime.ANTLRStringStream("defined"),
            lexer = new TLexer(stream),
            token;

        while (true) {
            token = lexer.nextToken();
            if (token.getType()===org.antlr.runtime.Token.EOF) {
                break;
            }
        }
    }
</script>

</head>
<body>
    <h1>t040bug80</h1>
</body>
</html>