restore the sharing of sequences. Shrinks the grammar by ~45%

This commit is contained in:
Krasimir Angelov
2022-01-08 19:49:42 +01:00
parent cd2c6aa32a
commit 00f857559d
31 changed files with 882 additions and 353 deletions

View File

@@ -30,4 +30,10 @@ ref<A> vector_elem(ref<Vector<A>> v, size_t index)
return ref<A>::from_ptr(&v->data[index]);
}
template <class A> inline
A *vector_elem(Vector<A> *v, size_t index)
{
return &v->data[index];
}
#endif // VECTOR_H