diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-07-21 23:30:39 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-07-21 23:30:39 +0000 |
commit | 1f1fa3776c03b51f845d9d9f54cbc3c980f6ead6 (patch) | |
tree | 203d6d6ad512f6d6a7d032cf8117556ef029a660 /read.c | |
parent | 3ee412a268eff0c9e52bb141dc3289eda00a6d53 (diff) | |
download | mandoc-1f1fa3776c03b51f845d9d9f54cbc3c980f6ead6.tar.gz mandoc-1f1fa3776c03b51f845d9d9f54cbc3c980f6ead6.tar.zst mandoc-1f1fa3776c03b51f845d9d9f54cbc3c980f6ead6.zip |
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.
Diffstat (limited to 'read.c')
-rw-r--r-- | read.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: read.c,v 1.20 2011/07/21 12:30:44 kristaps Exp $ */ +/* $Id: read.c,v 1.21 2011/07/21 23:30:39 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010, 2011 Ingo Schwarze <schwarze@openbsd.org> @@ -156,6 +156,9 @@ static const char * const mandocerrs[MANDOCERR_MAX] = { "too many nested equation defines", "unexpected equation scope closure", "equation scope open on exit", + "overlapping equation scopes", + "unexpected end of equation", + "equation syntax error", /* related to tables */ "bad table syntax", |