Debian Codegraph @

test/rp.nex

raw
1 /[ \t]/ { /* Skip blanks and tabs. */ }
2 /[0-9]*/ { lval.n,_ = strconv.Atoi(yylex.Text()); return NUM }
3 /./ { return int(yylex.Text()[0]) }
4 //
5 package main
6 import ("os";"strconv")
7 func main() {
8 yyParse(NewLexer(os.Stdin))
9 }