diff options
author | Adrian Thurston <thurston@complang.org> | 2015-11-01 10:35:19 -0500 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2015-11-01 10:35:19 -0500 |
commit | 80b9fc661abe6f37853bc12889f0443a1d6c65a9 (patch) | |
tree | 156be0111d93e2b5f3ae56c41d2bc4bb5ef47e8c /src/parsetree.h | |
parent | 0b175a8ed019785233618b3bb8e3c064e567f2ec (diff) | |
download | colm-80b9fc661abe6f37853bc12889f0443a1d6c65a9.tar.gz |
allow access to rhs elements by number
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 2e5bcb49..8bae78f0 100644 --- a/src/parsetree.h +++ b/src/parsetree.h @@ -926,8 +926,11 @@ struct ReduceTextItem Txt }; + ReduceTextItem() : n(0) {} + Type type; String txt; + int n; ReduceTextItem *prev, *next; }; |