d57901de5f
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.
6 lines
137 B
Go
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
|