cfad47cfa3/t3compiler/tads3/test/data/str_err.t

4b825dc642cb6eb9a060e54bf8d69288fbee4904cfad47cfa334b206c65f22086bcc5d63e6f70944
1
/*
2
 *   This file just has a bunch of unclosed '<< >>' blocks for exercising
3
 *   the compiler's error recovery 
4
 */
5
6
#include "tads.h"
7
#include "t3.h"
8
#include "bignum.h"
9
10
main(args)
11
{
12
    local i;
13
    local j;
14
15
    "Here's an expression: <<i.formatString(5)> \n";
16
17
    "Here's one where we continue on
18
    for a few lines afterwards: <<i.formatString(5))
19
    So, clearly we forgot the string, but
20
    now we continue on for a few lines.";
21
22
    "Here's multiple missing close brackets:
23
    <<i.formatString(5)><<j.logE(10)>>\n";
24
25
    "Here's one where we close the quote immediately: <<i.logE(7)>>";
26
}
27