Debian Codegraph @

test/peter2.nex

raw
1 / +/{ x+=len(txt()) }
2 /#+/{ println("rect", x, x+len(txt()), y, y+1); x+=len(txt()) }
3 /\n/{ x=1; y++ }
4 //
5 package main
6 import "os"
7 func main() {
8 x := 1
9 y := 1
10 lex := NewLexer(os.Stdin)
11 txt := func() string { return lex.Text() }
12 NN_FUN(lex)
13 }