diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /web/yacco2/grammar-testsuite/testout_T_enumeration.T |
Initial commit
Diffstat (limited to 'web/yacco2/grammar-testsuite/testout_T_enumeration.T')
-rw-r--r-- | web/yacco2/grammar-testsuite/testout_T_enumeration.T | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/web/yacco2/grammar-testsuite/testout_T_enumeration.T b/web/yacco2/grammar-testsuite/testout_T_enumeration.T new file mode 100644 index 0000000000..39484d6eda --- /dev/null +++ b/web/yacco2/grammar-testsuite/testout_T_enumeration.T @@ -0,0 +1,39 @@ +/* + Copyright Dave Bone 1998 - 2014 + All Rights Reserved. + No part of this document may be reproduced without written consent from the author. + +File: testout_T_enumeration.lex +Date: 25 July 2014 +Author: Dave Bone +Purpose: + Supplies emitted enumeration file name and namespace. The lr1 compiler/compiler + generates the "enum" type for the 4 classes of terminals: + 1) lr1 constants + 2) raw characters + 3) errors + 4) terminals + Note: + The enumerated type is emitted which is referenced in the other + emitted grammars via the "#include" directive having a symbol ordering: + 0 <= Lr1_K < raw chars < error terminals < Terminals < grammar's Rules + The subrules of a grammar's rule are locally enumerated within the grammar + starting from 1. + + This order is per emitted grammar. That is to say, each parallel grammar has + its own generated lr1 table using the enumerated terminal class symbols with + its enumerated rules starting 1 after the high bound of the enumerated terminal + classes. + After the parameters, a { k-body } can follow. This k-body + is used for global definitions of contants: + { + constant-defs + C++ syntax directed code for constant definitions + *** + } + +*/ +T-enumeration +(file-name testout_T_enumeration +,name-space NS_testout_T_enum) { +} |