1/*
2 * This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 *
6 * Copyright 1997 - July 2008 CWI, August 2008 - 2019 MonetDB B.V.
7 */
8
9#ifndef _MAL_PARSER_H
10#define _MAL_PARSER_H
11
12#include "mal_import.h"
13
14#define MAXERRORS 250
15
16#define CURRENT(c) (c->fdin->buf + c->fdin->pos + c->yycur)
17#define currChar(X) (*CURRENT(X))
18#define peekChar(X) (*((X)->fdin->buf + (X)->fdin->pos + (X)->yycur+1))
19#define nextChar(X) X->yycur++
20#define prevChar(X) if(X->yycur) X->yycur--
21
22mal_export void initParser(void); /* needed in src/mal/mal.c */
23mal_export void parseMAL(Client cntxt, Symbol curPrg, int skipcomments, int lines);
24
25#endif /* _MAL_PARSER_H */
26
27