mhamrah / thermostat

Example using yacc and ragel
22 stars 7 forks source link

Bug of Lexer! #1

Open QuestionPython opened 7 years ago

QuestionPython commented 7 years ago

go generate

go tool: no such tool "yacc"(https://github.com/cznic/goyacc/issues/23)(not work in go 1.8) you just use golex -o lexer.go lexer.l , goyacc -o parser.go parser.l


golex -o lex.go lex.rl

Error: lex.rl:6:2:"syntax error"

2017/03/12 18:55:36 main.go:111: lex.rl:6:2:"syntax error"


Fix this. :+1:

QuestionPython commented 7 years ago

!