Debian Codegraph @

test/bug50.nex

raw
1 /[ \t\n]/ { /* skip over whitespace */ }
2 /[a-z]([a-z0-9:]*[a-z0-9]+)?/
3 {
4 s := yylex.Text()
5 fmt.Printf("TEXT: %s\n", s)
6 }
7 /#[^\n]*/
8 {
9 s := yylex.Text()
10 fmt.Printf("COMMENT: %s\n", s)
11 }
12 /./ {
13 s := yylex.Text()
14 fmt.Printf("ERROR: %s\n", s)
15 }
16 //
17 package main
18 import ("fmt";"os")
19 type yySymType struct { l, c int }
20 func main() {
21 lex := NewLexer(os.Stdin)
22 NN_FUN(lex)
23 }