175584Sru// -*- C++ -*-
2104862Sru/* Copyright (C) 1989, 1990, 1991, 1992, 2001 Free Software Foundation, Inc.
375584Sru     Written by James Clark (jjc@jclark.com)
475584Sru
575584SruThis file is part of groff.
675584Sru
775584Srugroff is free software; you can redistribute it and/or modify it under
875584Sruthe terms of the GNU General Public License as published by the Free
975584SruSoftware Foundation; either version 2, or (at your option) any later
1075584Sruversion.
1175584Sru
1275584Srugroff is distributed in the hope that it will be useful, but WITHOUT ANY
1375584SruWARRANTY; without even the implied warranty of MERCHANTABILITY or
1475584SruFITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1575584Srufor more details.
1675584Sru
1775584SruYou should have received a copy of the GNU General Public License along
1875584Sruwith groff; see the file COPYING.  If not, write to the Free Software
19151497SruFoundation, 51 Franklin St - Fifth Floor, Boston, MA 02110-1301, USA. */
2075584Sru
21104862Sru#include "lib.h"
22104862Sru
2375584Sru#include <assert.h>
2475584Sru#include <stdlib.h>
2575584Sru#include <errno.h>
2675584Sru#include "cset.h"
2775584Sru#include "errarg.h"
2875584Sru#include "error.h"
2975584Sru
3075584Sru#include "box.h"
3175584Sru
3275584Sruextern char start_delim;
3375584Sruextern char end_delim;
3475584Sruextern int non_empty_flag;
3575584Sruextern int inline_flag;
3675584Sruextern int draw_flag;
3775584Sruextern int one_size_reduction_flag;
3875584Sruextern int compatible_flag;
3975584Sruextern int nroff;
4075584Sru
4175584Sruvoid init_lex(const char *str, const char *filename, int lineno);
4275584Sruvoid lex_error(const char *message,
4375584Sru	       const errarg &arg1 = empty_errarg,
4475584Sru	       const errarg &arg2 = empty_errarg,
4575584Sru	       const errarg &arg3 = empty_errarg);
4675584Sru
4775584Sruvoid init_table(const char *device);
4875584Sru
4975584Sru// prefix for all registers, strings, macros
5075584Sru#define PREFIX "0"
51