76c0ca70f0
On reflection, it seems easier to maintain the necessary state we need by doing all of the scanning in a single pass, since we can then just use local variables within the scanner function.
6 lines
139 B
Go
6 lines
139 B
Go
package zclsyntax
|
|
|
|
//go:generate go run expression_vars_gen.go
|
|
//go:generate ragel -Z scan_tokens.rl
|
|
//go:generate gofmt -w scan_tokens.go
|