piparser.h
Go to the documentation of this file.
1 
9 #ifndef PIPARSER_H
10 #define PIPARSER_H
11 #include "pilisp.h"
12 #include <stdbool.h>
13 #include <stdio.h>
14 
15 /********************************************************************************
16 * PARSER AND LEXER
17 ********************************************************************************/
18 
19 enum {
28 };
29 
30 cell *read_sexpr(FILE *f);
31 cell *read_sexpr_tok(FILE *f, int tok);
32 char *get_token_text();
33 int next_token(FILE *f);
34 
35 #endif // !PIPARSER_H
cell * read_sexpr(FILE *f)
Definition: piparser.c:147
symbol token
Definition: piparser.h:25
closed par token
Definition: piparser.h:22
empty file token
Definition: piparser.h:20
string token
Definition: piparser.h:27
open par token
Definition: piparser.h:21
char * get_token_text()
Definition: piparser.c:239
cell * read_sexpr_tok(FILE *f, int tok)
Definition: piparser.c:154
Basic Lisp entity.
Definition: picell.h:44
int next_token(FILE *f)
reads and returns the identifier of the next token in f
Definition: piparser.c:85
quote token
Definition: piparser.h:24
dot token
Definition: piparser.h:23
number token
Definition: piparser.h:26