From 1f1fa3776c03b51f845d9d9f54cbc3c980f6ead6 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Thu, 21 Jul 2011 23:30:39 +0000 Subject: Complete eqn.7 parsing. Features all productions from the original 1975 CACM paper in an LR(1) parse (1 -> eqn_rewind()). Right now the code is a little jungly, but will clear up as I consolidate parse components. The AST structure will also be cleaned up, as right now it's pretty ad hoc (this won't change the parse itself). I added the mandoc_strndup() function will here. --- libroff.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libroff.h') diff --git a/libroff.h b/libroff.h index 226a1dbc..de4c21cb 100644 --- a/libroff.h +++ b/libroff.h @@ -1,4 +1,4 @@ -/* $Id: libroff.h,v 1.23 2011/07/21 10:24:35 kristaps Exp $ */ +/* $Id: libroff.h,v 1.24 2011/07/21 23:30:39 kristaps Exp $ */ /* * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons * @@ -46,6 +46,7 @@ struct eqn_node { struct eqn_def *defs; size_t defsz; char *data; + size_t rew; size_t cur; size_t sz; struct eqn eqn; -- cgit v1.2.3