LexLeo 0.0.0-dev+f8e5087-dirty
Technical documentation
Loading...
Searching...
No Matches
parser_types.h
Go to the documentation of this file.
1// src/include/parser_types.h
2
3#ifndef PARSER_TYPES_H
4#define PARSER_TYPES_H
5
6typedef struct ast ast;
7typedef struct symtab symtab;
8typedef struct context { symtab *st; } *context;
9
15
17
24
31
32// forward declaration of yyscan_t for Bison (as Flex generates it)
33#ifndef YY_TYPEDEF_YY_SCANNER_T
34#define YY_TYPEDEF_YY_SCANNER_T
35typedef void* yyscan_t;
36#endif
37
38#endif //PARSER_TYPES_H
void * yyscan_t
struct lexer_extra lexer_extra_t
struct input_provider input_provider
struct ast ast
Definition parser_types.h:6
parse_goal_t
@ PARSE_GOAL_ONE_STATEMENT
@ PARSE_GOAL_TU
@ PARSE_GOAL_READABLE
struct symtab symtab
Definition parser_types.h:7
parse_status
@ PARSE_STATUS_INCOMPLETE
@ PARSE_STATUS_OK
@ PARSE_STATUS_ERROR
@ PARSE_STATUS_EOF
symtab * st
Definition parser_types.h:8
int reached_input_end
input_provider * provider
parse_goal_t goal
int sent_mode_token