String table productions

This commit is contained in:
Corey Farwell 2017-02-20 23:09:56 -05:00 committed by Steve Klabnik
parent bb6b578e0b
commit fd272161cb
1 changed files with 8 additions and 6 deletions

View File

@ -1,16 +1,18 @@
# String table productions
Some rules in the grammar — notably [unary
operators](#unary-operator-expressions), [binary
operators](#binary-operator-expressions), and [keywords][keywords] — are
operators], [binary operators], and [keywords][keywords] — are
given in a simplified form: as a listing of a table of unquoted, printable
whitespace-separated strings. These cases form a subset of the rules regarding
the [token](#tokens) rule, and are assumed to be the result of a
the [token][tokens] rule, and are assumed to be the result of a
lexical-analysis phase feeding the parser, driven by a DFA, operating over the
disjunction of all such string table entries.
[keywords]: grammar.html#keywords
When such a string enclosed in double-quotes (`"`) occurs inside the grammar,
it is an implicit reference to a single member of such a string table
production. See [tokens](#tokens) for more information.
production. See [tokens] for more information.
[binary operators]: expressions.html#binary-operator-expressions
[keywords]: ../grammar.html#keywords
[tokens]: tokens.html
[unary operators]: expressions.html#unary-operator-expressions