diff options
author | Adrian Thurston <thurston@complang.org> | 2015-10-08 18:15:39 -0400 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2015-10-08 18:15:39 -0400 |
commit | a16df3c2ed1163691eb1af042a1797d1a4895441 (patch) | |
tree | 6eee0759cb4ca03798af5e757a249965b156bef0 /src/parsetree.h | |
parent | ccaa108e29f630cea0033d6719f524625d1768b0 (diff) | |
download | colm-a16df3c2ed1163691eb1af042a1797d1a4895441.tar.gz |
reduction actions: add loc reference, elim duplicate labels
Diffstat (limited to 'src/parsetree.h')
-rw-r--r-- | src/parsetree.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/parsetree.h b/src/parsetree.h index 9a7ddb4a..fc53be89 100644 --- a/src/parsetree.h +++ b/src/parsetree.h @@ -922,6 +922,7 @@ struct ReduceTextItem enum Type { LhsRef, RhsRef, + RhsLoc, Txt }; @@ -972,6 +973,8 @@ struct ReduceAction typedef DList<ReduceAction> ReduceActionList; typedef DList<ReduceNonTerm> ReduceNonTermList; +typedef Vector<ReduceAction*> ReduceActionVect; + struct Reduction { Reduction( const InputLoc &loc, String name ) |