1 // Copyright (c) 2006- Facebook
2 // Distributed under the Thrift Software License
4 // See accompanying file LICENSE or visit the Thrift site at:
5 // http://developers.facebook.com/thrift/
11 #include "parse/t_const.h"
12 #include "parse/t_field.h"
15 * Defined in the flex library
23 * Expected to be defined by Flex/Bison
25 void yyerror(char* fmt
, ...);
28 * Parse debugging output, used to print helpful info
30 void pdebug(char* fmt
, ...);
35 void pwarning(int level
, char* fmt
, ...);
40 void failure(const char* fmt
, ...);
43 * Check constant types
45 void validate_const_type(t_const
* c
);
48 * Check constant types
50 void validate_field_value(t_field
* field
, t_const_value
* cv
);
53 * Check members of a throws block
55 bool validate_throws(t_struct
* throws
);
58 * Converts a string filename into a thrift program name
60 std::string
program_name(std::string filename
);
63 * Gets the directory path of a filename
65 std::string
directory_name(std::string filename
);
68 * Get the absolute path for an include file
70 std::string
include_file(std::string filename
);
73 * Clears any previously stored doctext string.
78 * Cleans up text commonly found in doxygen-like comments
80 char* clean_up_doctext(char* doctext
);