hcl/zcl/zclsyntax/generate.go
Martin Atkins 76c0ca70f0 zclsyntax: scanner to return whole token slice at once
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.
2017-05-28 07:11:24 -07:00

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