diff options
| author | Robert Griesemer <gri@golang.org> | 2011-05-13 12:54:51 -0700 |
|---|---|---|
| committer | Robert Griesemer <gri@golang.org> | 2011-05-13 12:54:51 -0700 |
| commit | 32b822f29a7e0ceaee9d393da8fa85e6d2e9c9f1 (patch) | |
| tree | 05b8a9d163c5c905d1c8394e24128be735b03b85 /src/pkg | |
| parent | 5236814edd14d072a0ee32071d2a008b360b1964 (diff) | |
| download | go-32b822f29a7e0ceaee9d393da8fa85e6d2e9c9f1.tar.xz | |
go spec: fix error in production syntax
Fix analoguous error in ebnf.go which already
correctly accepted an empty production.
Fixes #1821.
R=r
CC=golang-dev
https://golang.org/cl/4526056
Diffstat (limited to 'src/pkg')
| -rw-r--r-- | src/pkg/ebnf/ebnf.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/ebnf/ebnf.go b/src/pkg/ebnf/ebnf.go index 7918c4593b..964e1c1b0e 100644 --- a/src/pkg/ebnf/ebnf.go +++ b/src/pkg/ebnf/ebnf.go @@ -5,7 +5,7 @@ // Package ebnf is a library for EBNF grammars. The input is text ([]byte) // satisfying the following grammar (represented itself in EBNF): // -// Production = name "=" Expression "." . +// Production = name "=" [ Expression ] "." . // Expression = Alternative { "|" Alternative } . // Alternative = Term { Term } . // Term = name | token [ "..." token ] | Group | Option | Repetition . |
