Home | History | Annotate | Download | only in src

Lines Matching refs:Parser

75 CheckedError Parser::Error(const std::string &msg) {
90 CheckedError Parser::CheckBitsFit(int64_t val, size_t bits) {
105 template<typename T> inline CheckedError atot(const char *s, Parser &parser,
108 ECHECK(parser.CheckBitsFit(i, sizeof(T) * 8));
112 template<> inline CheckedError atot<uint64_t>(const char *s, Parser &parser,
114 (void)parser;
118 template<> inline CheckedError atot<bool>(const char *s, Parser &parser,
120 (void)parser;
124 template<> inline CheckedError atot<float>(const char *s, Parser &parser,
126 (void)parser;
130 template<> inline CheckedError atot<double>(const char *s, Parser &parser,
132 (void)parser;
137 template<> inline CheckedError atot<Offset<void>>(const char *s, Parser &parser,
139 (void)parser;
217 std::string Parser::TokenToStringId(int t) {
222 CheckedError Parser::ParseHexNum(int nibbles, uint64_t *val) {
233 CheckedError Parser::SkipByteOrderMark() {
247 CheckedError Parser::Next() {
496 bool Parser::Is(int t) {
501 CheckedError Parser::Expect(int t) {
510 CheckedError Parser::ParseNamespacing(std::string *id, std::string *last) {
521 EnumDef *Parser::LookupEnum(const std::string &id) {
532 CheckedError Parser::ParseTypeIdent(Type &type) {
548 CheckedError Parser::ParseType(Type &type) {
575 CheckedError Parser::AddField(StructDef &struct_def, const std::string &name,
599 CheckedError Parser::ParseField(StructDef &struct_def) {
738 CheckedError Parser::ParseAnyValue(Value &val, FieldDef *field,
825 void Parser::SerializeStruct(const StructDef &struct_def, const Value &val) {
833 CheckedError Parser::ParseTable(const StructDef &struct_def, std::string *value,
954 CheckedError Parser::ParseVector(const Type &type, uoffset_t *ovalue) {
993 CheckedError Parser::ParseMetaData(SymbolTable<Value> *attributes) {
1015 CheckedError Parser::TryTypedValue(int dtoken, bool check, Value &e,
1036 CheckedError Parser::ParseEnumFromString(Type &type, int64_t *result) {
1076 CheckedError Parser::ParseHash(Value &e, FieldDef* field) {
1101 CheckedError Parser::ParseSingleValue(Value &e) {
1174 StructDef *Parser::LookupCreateStruct(const std::string &name,
1227 CheckedError Parser::ParseEnum(bool is_union, EnumDef **dest) {
1330 CheckedError Parser::StartStruct(const std::string &name, StructDef **dest) {
1343 CheckedError Parser::CheckClash(std::vector<FieldDef*> &fields,
1370 CheckedError Parser::ParseDecl() {
1437 CheckedError Parser::ParseService() {
1477 bool Parser::SetRootType(const char *name) {
1485 void Parser::MarkGenerated() {
1503 CheckedError Parser::ParseNamespace() {
1526 CheckedError Parser::ParseProtoDecl() {
1598 CheckedError Parser::ParseProtoFields(StructDef *struct_def, bool isextend,
1719 CheckedError Parser::ParseProtoKey() {
1732 CheckedError Parser::ParseProtoCurliesOrIdent() {
1746 CheckedError Parser::ParseProtoOption() {
1755 CheckedError Parser::ParseTypeFromProtoType(Type *type) {
1781 CheckedError Parser::SkipAnyJsonValue() {
1804 CheckedError Parser::SkipJsonObject() {
1830 CheckedError Parser::SkipJsonArray() {
1846 CheckedError Parser::SkipJsonString() {
1851 bool Parser::Parse(const char *source, const char **include_paths,
1856 CheckedError Parser::DoParse(const char *source, const char **include_paths,
2008 std::set<std::string> Parser::GetIncludedFilesRecursive(
2045 void Parser::Serialize() {
2074 const Parser &parser) const {
2079 static_cast<uint16_t>(it - fields.vec.begin()), parser));
2089 SerializeAttributes(builder, parser),
2090 parser.opts.binary_schema_comments
2098 const Parser &parser) const {
2113 SerializeAttributes(builder, parser),
2114 parser.opts.binary_schema_comments
2122 const Parser &parser) const {
2133 SerializeAttributes(builder, parser),
2134 parser.opts.binary_schema_comments
2160 const Parser &parser) const {
2163 auto it = parser.known_attributes_.find(kv->first);
2164 assert(it != parser.known_attributes_.end());
2179 std::string Parser::ConformTo(const Parser &base) {