hcl/zcl/zclsyntax/generate.go
Martin Atkins d57901de5f zclsyntax: start of a ragel-based scanner
Using Ragel here because the scanner is going to be somewhat complex due
to the need to switch back and forth between normal and template states,
etc. This should be easier to maintain than a hand-written scanner, while
ragel gives us the extra features we need to implement things that would
normally be too complex for a "regular" scanner generator.
2017-05-27 19:01:43 -07:00

6 lines
137 B
Go

package zclsyntax
//go:generate go run expression_vars_gen.go
//go:generate ragel -Z scan_token.rl
//go:generate gofmt -w scan_token.go