diff options
author | Pierre Fenoll <[email protected]> | 2013-12-29 02:58:09 +0100 |
---|---|---|
committer | Pierre Fenoll <[email protected]> | 2013-12-29 02:58:09 +0100 |
commit | b258165f5f000e77ca3e73cf7be38ae53c33a459 (patch) | |
tree | 2b5ab7e6339d0481425454219c49f53d65635bc1 /lib/parsetools/doc/src/yecc.xml | |
parent | 25237481ccccd3ddfa74582dc267632ad618ba30 (diff) | |
download | otp-b258165f5f000e77ca3e73cf7be38ae53c33a459.tar.gz otp-b258165f5f000e77ca3e73cf7be38ae53c33a459.tar.bz2 otp-b258165f5f000e77ca3e73cf7be38ae53c33a459.zip |
Replace fixed-length list-nodes by tuple-nodes
Diffstat (limited to 'lib/parsetools/doc/src/yecc.xml')
-rw-r--r-- | lib/parsetools/doc/src/yecc.xml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/parsetools/doc/src/yecc.xml b/lib/parsetools/doc/src/yecc.xml index 66bc6f4795..0f1945e3ee 100644 --- a/lib/parsetools/doc/src/yecc.xml +++ b/lib/parsetools/doc/src/yecc.xml @@ -425,9 +425,9 @@ myparser:parse_and_scan({Mod, Tokenizer, Args}) </code> Nonterminals E T F. Terminals '+' '*' '(' ')' number. Rootsymbol E. -E -> E '+' T: ['$2', '$1', '$3']. +E -> E '+' T: {'$2', '$1', '$3'}. E -> T : '$1'. -T -> T '*' F: ['$2', '$1', '$3']. +T -> T '*' F: {'$2', '$1', '$3'}. T -> F : '$1'. F -> '(' E ')' : '$2'. F -> number : '$1'. </code> @@ -438,8 +438,8 @@ Terminals '+' '*' '(' ')' number. Rootsymbol E. Left 100 '+'. Left 200 '*'. -E -> E '+' E : ['$2', '$1', '$3']. -E -> E '*' E : ['$2', '$1', '$3']. +E -> E '+' E : {'$2', '$1', '$3'}. +E -> E '*' E : {'$2', '$1', '$3'}. E -> '(' E ')' : '$2'. E -> number : '$1'. </code> <p>3. An overloaded minus operator:</p> |