]> Cypherpunks repositories - gostls13.git/commitdiff
document ebnflint
authorRob Pike <r@golang.org>
Wed, 4 Nov 2009 06:19:56 +0000 (22:19 -0800)
committerRob Pike <r@golang.org>
Wed, 4 Nov 2009 06:19:56 +0000 (22:19 -0800)
R=gri
http://go/go-review/1016034

src/cmd/ebnflint/doc.go [new file with mode: 0644]

diff --git a/src/cmd/ebnflint/doc.go b/src/cmd/ebnflint/doc.go
new file mode 100644 (file)
index 0000000..d395a34
--- /dev/null
@@ -0,0 +1,22 @@
+// Copyright 2009 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+/*
+
+The ebnflint program verifies that EBNF productions in an HTML document
+such as the Go specification document are consistent and grammatically correct.
+
+Grammar productions are grouped in boxes demarcated by the HTML elements
+       <pre class="ebnf">
+       </pre>
+
+
+Usage:
+       ebnflint [--start production] [file]
+
+The --start flag specifies the name of the start production for
+the grammar; it defaults to "Start".
+
+*/
+package documentation