summaryrefslogtreecommitdiff
path: root/usr/gri/src/test_scanner.go
diff options
context:
space:
mode:
Diffstat (limited to 'usr/gri/src/test_scanner.go')
-rw-r--r--usr/gri/src/test_scanner.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/gri/src/test_scanner.go b/usr/gri/src/test_scanner.go
index 6f6a92248..00205621a 100644
--- a/usr/gri/src/test_scanner.go
+++ b/usr/gri/src/test_scanner.go
@@ -11,8 +11,10 @@ func Scan(src string) {
S := new(Scanner.Scanner);
S.Open(src);
for {
+ var t Scanner.Token;
var tok, beg, end int;
- tok, beg, end = S.Scan();
+ tok, beg, end = S.Scan(&t);
+ //t.Print(); // TODO this doesn't compile?
print Scanner.TokenName(tok), "\t ", src[beg : end], "\n";
if tok == Scanner.EOF {
return;