Skip to content

grammars: generate in strict mode (peg -strict)#199

Merged
pointlander merged 1 commit into
pointlander:mainfrom
dolmen-go:grammars-use-strict-mode
May 21, 2026
Merged

grammars: generate in strict mode (peg -strict)#199
pointlander merged 1 commit into
pointlander:mainfrom
dolmen-go:grammars-use-strict-mode

Conversation

@dolmen
Copy link
Copy Markdown
Contributor

@dolmen dolmen commented May 21, 2026

Change the '//go:generate' in grammars/... to use -strict mode.

$ go generate -x ./grammars/...
go tool peg -strict -switch -inline c.peg
go tool peg -strict -switch -inline calculator.peg
go tool peg -strict -switch -inline calculator.peg
go tool peg -strict -switch -inline fexl.peg
go tool peg -strict -switch -inline java_1_7.peg
go tool peg -strict -switch -inline long.peg

Change the '//go:generate' in grammars/... to use -strict mode.

$ go generate -x ./grammars/...
go tool peg -strict -switch -inline c.peg
go tool peg -strict -switch -inline calculator.peg
go tool peg -strict -switch -inline calculator.peg
go tool peg -strict -switch -inline fexl.peg
go tool peg -strict -switch -inline java_1_7.peg
go tool peg -strict -switch -inline long.peg
@pointlander pointlander merged commit bae0215 into pointlander:main May 21, 2026
1 check passed
@dolmen dolmen deleted the grammars-use-strict-mode branch May 22, 2026 00:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants