From fee8aca887653490f8c052e474d2a620140e741d Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Thu, 21 Jul 2011 10:24:35 +0000 Subject: Finish the eqn syntactic parser. This correctly parses terms and does the proper `define' dance, which amounts to pure word-replace (you can, say, define `foo' as `define' then define `define' as something else). eqn.c is now ready for some semantic parsing of `box' and `eqn' productions as defined by the grammar. --- man.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'man.c') diff --git a/man.c b/man.c index 73b432f1..593777ac 100644 --- a/man.c +++ b/man.c @@ -1,4 +1,4 @@ -/* $Id: man.c,v 1.108 2011/07/18 07:46:41 kristaps Exp $ */ +/* $Id: man.c,v 1.109 2011/07/21 10:24:35 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * @@ -371,14 +371,14 @@ man_addeqn(struct man *m, const struct eqn *ep) assert( ! (MAN_HALT & m->flags)); - n = man_node_alloc(m, ep->line, ep->pos, MAN_EQN, MAN_MAX); + n = man_node_alloc(m, ep->ln, ep->pos, MAN_EQN, MAN_MAX); n->eqn = ep; if ( ! man_node_append(m, n)) return(0); m->next = MAN_NEXT_SIBLING; - return(man_descope(m, ep->line, ep->pos)); + return(man_descope(m, ep->ln, ep->pos)); } int -- cgit v1.2.3