|
OpenSDN source code
|
#include <set>#include <queue>#include <stack>#include <vector>#include <string>

Go to the source code of this file.
Enumerations | |
| enum | PARSE_MODE { INCLUDES = 1 , PROGRAM = 2 } |
| enum | PROGDOCTEXT_STATUS { INVALID = 0 , STILL_CANDIDATE = 1 , ALREADY_PROCESSED = 2 , ABSOLUTELY_SURE = 3 , NO_PROGRAM_DOCTEXT = 4 } |
Variables | |
| int | g_strict |
| t_program * | g_program |
| t_type * | g_type_void |
| t_type * | g_type_string |
| t_type * | g_type_binary |
| t_type * | g_type_slist |
| t_type * | g_type_bool |
| t_type * | g_type_byte |
| t_type * | g_type_i16 |
| t_type * | g_type_i32 |
| t_type * | g_type_i64 |
| t_type * | g_type_double |
| t_scope * | g_scope |
| t_scope * | g_parent_scope |
| std::string | g_parent_prefix |
| PARSE_MODE | g_parse_mode |
| char * | g_time_str |
| char * | g_doctext |
| int | g_doctext_lineno |
| char * | g_program_doctext_candidate |
| int | g_program_doctext_lineno |
| PROGDOCTEXT_STATUS | g_program_doctext_status |
| int | g_allow_neg_field_keys |
| int | g_allow_64bit_consts |
| enum PARSE_MODE |
| enum PROGDOCTEXT_STATUS |
|
extern |
Whether or not 64-bit constants will generate a warning.
Some languages don't support 64-bit constants, but many do, so we can suppress this warning for projects that don't use any non-64-bit-safe languages.
Whether or not 64-bit constants will generate a warning.
Definition at line 197 of file src/contrail-common/sandesh/compiler/main.cc.
|
extern |
Whether or not negative field keys are accepted.
When a field does not have a user-specified key, thrift automatically assigns a negative value. However, this is fragile since changes to the file may unintentionally change the key numbering, resulting in a new protocol that is not backwards compatible.
When g_allow_neg_field_keys is enabled, users can explicitly specify negative keys. This way they can write a .thrift file with explicitly specified keys that is still backwards compatible with older .thrift files that did not specify key values.
Whether or not negative field keys are accepted.
Definition at line 192 of file src/contrail-common/sandesh/compiler/main.cc.
|
extern |
The last parsed doctext comment.
Definition at line 175 of file src/contrail-common/sandesh/compiler/main.cc.
|
extern |
The location of the last parsed doctext comment.
Definition at line 180 of file src/contrail-common/sandesh/compiler/main.cc.
|
extern |
The prefix for the parent scope entries
Prefix for putting types in parent scope
Definition at line 119 of file src/contrail-common/sandesh/compiler/main.cc.
|
extern |
The parent scope to also load symbols into
Parent scope to also parse types
Definition at line 114 of file src/contrail-common/sandesh/compiler/main.cc.
|
extern |
The parsing pass that we are on. We do different things on each pass.
Parsing pass
Definition at line 124 of file src/contrail-common/sandesh/compiler/main.cc.
|
extern |
The master program parse tree. This is accessed from within the parser code to build up the program elements.
Global program tree
Definition at line 65 of file src/contrail-common/sandesh/compiler/main.cc.
|
extern |
The program level doctext. Stored seperately to make parsing easier.
The First doctext comment
Definition at line 185 of file src/contrail-common/sandesh/compiler/main.cc.
|
extern |
Definition at line 186 of file src/contrail-common/sandesh/compiler/main.cc.
|
extern |
Definition at line 187 of file src/contrail-common/sandesh/compiler/main.cc.
|
extern |
The scope that we are currently parsing into
Global scope
Definition at line 109 of file src/contrail-common/sandesh/compiler/main.cc.
|
extern |
Strictness level
Definition at line 155 of file src/contrail-common/sandesh/compiler/main.cc.
|
extern |
Global time string, used in formatting error messages etc.
Global time string
Definition at line 170 of file src/contrail-common/sandesh/compiler/main.cc.
|
extern |
Definition at line 73 of file src/contrail-common/sandesh/compiler/main.cc.
|
extern |
Definition at line 75 of file src/contrail-common/sandesh/compiler/main.cc.
|
extern |
Definition at line 76 of file src/contrail-common/sandesh/compiler/main.cc.
|
extern |
Definition at line 80 of file src/contrail-common/sandesh/compiler/main.cc.
|
extern |
Definition at line 77 of file src/contrail-common/sandesh/compiler/main.cc.
|
extern |
Definition at line 78 of file src/contrail-common/sandesh/compiler/main.cc.
|
extern |
Definition at line 79 of file src/contrail-common/sandesh/compiler/main.cc.
|
extern |
Definition at line 74 of file src/contrail-common/sandesh/compiler/main.cc.
|
extern |
Definition at line 72 of file src/contrail-common/sandesh/compiler/main.cc.
|
extern |
Global types for the parser to be able to reference
Global types
Definition at line 71 of file src/contrail-common/sandesh/compiler/main.cc.