golang.org/x/exp@v0.0.0-20240506185415-9bf2ced13842/ebnflint/doc.go (about) 1 // Copyright 2009 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 /* 6 Ebnflint verifies that EBNF productions are consistent and grammatically correct. 7 It reads them from an HTML document such as the Go specification. 8 9 Grammar productions are grouped in boxes demarcated by the HTML elements 10 11 <pre class="ebnf"> 12 </pre> 13 14 Usage: 15 16 go tool ebnflint [--start production] [file] 17 18 The --start flag specifies the name of the start production for 19 the grammar; it defaults to "Start". 20 */ 21 package main // import "golang.org/x/exp/ebnflint"