Piparser
Provides lexer and parser. More...
Enumerations | |
| enum | { TOK_NONE, TOK_OPEN, TOK_CLOSE, TOK_DOT, TOK_QUOTE, TOK_SYM, TOK_NUM, TOK_STR } |
Functions | |
| cell * | read_sexpr (FILE *f) |
| cell * | read_sexpr_tok (FILE *f, int tok) |
| char * | get_token_text () |
| int | next_token (FILE *f) |
| reads and returns the identifier of the next token in f More... | |
Detailed Description
Provides lexer and parser.
Enumeration Type Documentation
| anonymous enum |
Function Documentation
| char* get_token_text | ( | ) |
| int next_token | ( | FILE * | f | ) |
reads and returns the identifier of the next token in f
- Parameters
-
f the input source
- Returns
- int the code of the token
| cell* read_sexpr | ( | FILE * | f | ) |
| cell* read_sexpr_tok | ( | FILE * | f, |
| int | tok | ||
| ) |
