Home
last modified time | relevance | path

Searched refs:Parser (Results 1 – 25 of 580) sorted by relevance

12345678910>>...24

/third_party/node/deps/npm/node_modules/jsonparse/test/
Doffset.js2 var Parser = require('../'); variable
9 [ 0, Parser.C.LEFT_BRACE ],
10 [ 4, Parser.C.STRING ],
11 [ 12, Parser.C.COLON ],
12 [ 14, Parser.C.STRING ],
13 [ 21, Parser.C.COMMA ],
14 [ 25, Parser.C.STRING ],
15 [ 33, Parser.C.COLON ],
16 [ 35, Parser.C.NUMBER ],
17 [ 36, Parser.C.COMMA ],
[all …]
/third_party/python/Parser/pegen/
Dpegen.h77 } Parser; typedef
117 int _PyPegen_insert_memo(Parser *p, int mark, int type, void *node);
118 int _PyPegen_update_memo(Parser *p, int mark, int type, void *node);
119 int _PyPegen_is_memoized(Parser *p, int type, void *pres);
121 int _PyPegen_lookahead_with_name(int, expr_ty (func)(Parser *), Parser *);
122 int _PyPegen_lookahead_with_string(int , expr_ty (func)(Parser *, const char*), Parser *, const cha…
123 int _PyPegen_lookahead_with_int(int, Token *(func)(Parser *, int), Parser *, int);
124 int _PyPegen_lookahead(int, void *(func)(Parser *), Parser *);
126 Token *_PyPegen_expect_token(Parser *p, int type);
127 expr_ty _PyPegen_expect_soft_keyword(Parser *p, const char *keyword);
[all …]
Dpegen.c10 _PyPegen_new_type_comment(Parser *p, char *s) in _PyPegen_new_type_comment()
24 _PyPegen_add_type_comment_to_arg(Parser *p, arg_ty a, Token *tc) in _PyPegen_add_type_comment_to_arg()
43 init_normalization(Parser *p) in init_normalization()
65 _PyPegen_check_barry_as_flufl(Parser *p, Token* t) { in _PyPegen_check_barry_as_flufl()
81 _PyPegen_new_identifier(Parser *p, char *n) in _PyPegen_new_identifier()
137 _create_dummy_identifier(Parser *p) in _create_dummy_identifier()
235 raise_decode_error(Parser *p) in raise_decode_error()
308 tokenizer_error(Parser *p) in tokenizer_error()
363 _PyPegen_raise_error(Parser *p, PyObject *errtype, const char *errmsg, ...) in _PyPegen_raise_error()
384 _PyPegen_raise_error_known_location(Parser *p, PyObject *errtype, in _PyPegen_raise_error_known_location()
[all …]
/third_party/gn/src/gn/
Dparser_unittest.cc28 std::unique_ptr<ParseNode> result = Parser::Parse(tokens, &err); in DoParserPrintTest()
46 std::unique_ptr<ParseNode> result = Parser::ParseExpression(tokens, &err); in DoExpressionPrintTest()
64 std::unique_ptr<ParseNode> result = Parser::Parse(tokens, &err); in DoParserErrorTest()
82 std::unique_ptr<ParseNode> result = Parser::ParseExpression(tokens, &err); in DoExpressionErrorTest()
93 TEST(Parser, Literal) { in TEST() argument
98 TEST(Parser, BinaryOp) { in TEST() argument
117 TEST(Parser, FunctionCall) { in TEST() argument
130 TEST(Parser, ParenExpression) { in TEST() argument
148 TEST(Parser, OrderOfOperationsLeftAssociative) { in TEST() argument
159 TEST(Parser, OrderOfOperationsEqualityBoolean) { in TEST() argument
[all …]
Dparser.cc255 ParserHelper Parser::expressions_[] = {
257 {&Parser::Literal, nullptr, -1}, // INTEGER
258 {&Parser::Literal, nullptr, -1}, // STRING
259 {&Parser::Literal, nullptr, -1}, // TRUE_TOKEN
260 {&Parser::Literal, nullptr, -1}, // FALSE_TOKEN
261 {nullptr, &Parser::Assignment, PRECEDENCE_ASSIGNMENT}, // EQUAL
262 {nullptr, &Parser::BinaryOperator, PRECEDENCE_SUM}, // PLUS
263 {nullptr, &Parser::BinaryOperator, PRECEDENCE_SUM}, // MINUS
264 {nullptr, &Parser::Assignment, PRECEDENCE_ASSIGNMENT}, // PLUS_EQUALS
265 {nullptr, &Parser::Assignment, PRECEDENCE_ASSIGNMENT}, // MINUS_EQUALS
[all …]
Dparser.h26 class Parser {
43 Parser(const std::vector<Token>& tokens, Err* err);
44 ~Parser();
128 FRIEND_TEST_ALL_PREFIXES(Parser, BinaryOp);
129 FRIEND_TEST_ALL_PREFIXES(Parser, Block);
130 FRIEND_TEST_ALL_PREFIXES(Parser, Condition);
131 FRIEND_TEST_ALL_PREFIXES(Parser, Expression);
132 FRIEND_TEST_ALL_PREFIXES(Parser, FunctionCall);
133 FRIEND_TEST_ALL_PREFIXES(Parser, List);
134 FRIEND_TEST_ALL_PREFIXES(Parser, ParenExpression);
[all …]
/third_party/boost/libs/spirit/test/x3/
Dtest.hpp16 template <typename Char, typename Parser>
17 bool test(Char const* in, Parser const& p, bool full_match = true) in test()
26 template <typename Char, typename Parser>
28 Parser const& p, bool full_match = true) in test()
36 template <typename Char, typename Parser, typename Skipper>
37 bool test(Char const* in, Parser const& p in test()
47 template <typename Char, typename Parser>
48 bool test_failure(Char const* in, Parser const& p) in test_failure()
58 template <typename Char, typename Parser>
60 Parser const& p) in test_failure()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AVR/AsmParser/
DAVRAsmParser.cpp43 MCAsmParser &Parser; member in __anone8cfab810111::AVRAsmParser
89 AVRAsmParser(const MCSubtargetInfo &STI, MCAsmParser &Parser, in AVRAsmParser() argument
91 : MCTargetAsmParser(Options, STI, MII), STI(STI), Parser(Parser) { in AVRAsmParser()
92 MCAsmParserExtension::Initialize(Parser); in AVRAsmParser()
98 MCAsmParser &getParser() const { return Parser; } in getParser()
99 MCAsmLexer &getLexer() const { return Parser.getLexer(); } in getLexer()
335 StringRef Name = Parser.getTok().getString(); in parseRegisterName()
365 if (Parser.getTok().is(AsmToken::Identifier)) { in parseRegister()
367 if (Parser.getLexer().peekTok().is(AsmToken::Colon)) { in parseRegister()
368 Parser.Lex(); in parseRegister()
[all …]
/third_party/boost/boost/spirit/home/x3/core/
Dparse.hpp18 template <typename Iterator, typename Parser, typename Attribute>
23 , Parser const& p in parse_main()
40 template <typename Iterator, typename Parser, typename Attribute>
45 , Parser const& p in parse()
52 template <typename Iterator, typename Parser, typename Attribute>
57 , Parser const& p in parse()
65 template <typename Iterator, typename Parser>
70 , Parser const& p) in parse()
76 template <typename Iterator, typename Parser>
81 , Parser const& p) in parse()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/pnacl-llvm/
DNaClBitcodeParser.cpp46 Parser->EnterBlock(NumWords); in BeginBlockInfoBlock()
50 Parser->Record.SetStartBit(StartBit); in SetBID()
51 Parser->Record.Entry.Kind = NaClBitstreamEntry::Record; in SetBID()
52 Parser->Record.Entry.ID = naclbitc::UNABBREV_RECORD; in SetBID()
53 Parser->Record.Data.Code = naclbitc::BLOCKINFO_CODE_SETBID; in SetBID()
54 Parser->Record.Data.Values = Values; in SetBID()
56 Parser->SetBID(); in SetBID()
61 Parser->Record.SetStartBit(StartBit); in EndBlockInfoBlock()
62 Parser->Record.Entry.Kind = NaClBitstreamEntry::EndBlock; in EndBlockInfoBlock()
63 Parser->Record.Entry.ID = naclbitc::END_BLOCK; in EndBlockInfoBlock()
[all …]
/third_party/boost/boost/spirit/home/x3/core/detail/
Dparse_into_container.hpp72 template <typename Parser, typename Container, typename Context>
75 typename traits::attribute_of<Parser, Context>::type
80 template <typename Parser>
89 Parser const& parser in call_synthesize_x()
109 Parser const& parser in call_synthesize_x()
120 Parser const& parser in call_synthesize()
125 parser_accepts_container<Parser, Attribute, Context> in call_synthesize()
135 static bool call_synthesize_into_fusion_seq(Parser const& parser in call_synthesize_into_fusion_seq()
148 Parser const& parser in call_synthesize_into_fusion_seq()
152 using attribute_type = typename traits::attribute_of<Parser, Context>::type; in call_synthesize_into_fusion_seq()
[all …]
/third_party/boost/boost/spirit/home/qi/nonterminal/detail/
Dparser_binder.hpp21 template <typename Parser, typename Auto>
24 parser_binder(Parser const& p_) in parser_binder()
52 typedef typename traits::has_semantic_action<Parser>::type auto_rule; in operator ()()
56 Parser p;
60 template <typename Parser>
61 struct parser_binder<Parser, mpl::true_>
63 parser_binder(Parser const& p_) in parser_binder()
76 Parser p;
79 template <typename Auto, typename Parser>
80 inline parser_binder<Parser, Auto>
[all …]
/third_party/boost/boost/spirit/home/x3/operator/detail/
Dsequence.hpp41 template <typename Parser, typename Context, typename Enable = void>
44 static int const value = traits::has_attribute<Parser, Context>::value;
47 template <typename Parser, typename Context>
49 : sequence_size<typename Parser::subject_type, Context> {};
51 template <typename Parser, typename Context>
52 struct sequence_size<Parser, Context
53 , typename enable_if_c<(Parser::is_pass_through_unary)>::type>
54 : sequence_size_subject<Parser, Context> {};
102 template <typename Parser, typename Attribute, typename Enable = void>
113 template <typename Parser, typename Attribute>
[all …]
Dalternative.hpp61 template <typename Parser, typename Attribute, typename Context
66 traits::attribute_of<Parser, Context>::type
103 template <typename Parser, typename Attribute, typename Context
117 template <typename Parser, typename Attribute, typename Context>
118 struct pass_non_variant_attribute<Parser, Attribute, Context,
125 typedef pass_parser_attribute<Parser, attr_type, Context> pass;
136 template <typename Parser, typename Attribute, typename Context>
137 struct pass_parser_attribute<Parser, Attribute, Context,
139 : pass_non_variant_attribute<Parser, Attribute, Context>
142 template <typename Parser, typename Context>
[all …]
/third_party/protobuf/csharp/src/Google.Protobuf.Test/
DJsonParserTest.cs81 Assert.AreEqual(expected, TestAllTypes.Parser.ParseJson(json)); in OriginalFieldNameAccepted()
200 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in RepeatedField_NullElementProhibited()
207 Assert.AreEqual(new TestAllTypes(), TestAllTypes.Parser.ParseJson(json)); in RepeatedField_NullOverallValueAllowed()
216 Assert.Throws<InvalidProtocolBufferException>(() => TestMap.Parser.ParseJson(json)); in MapField_NullValueProhibited()
223 Assert.AreEqual(new TestMap(), TestMap.Parser.ParseJson(json)); in MapField_NullOverallValueAllowed()
229 … Assert.AreEqual(new StringValue { Value = "foo" }, StringValue.Parser.ParseJson("\"foo\"")); in IndividualWrapperTypes()
230 Assert.AreEqual(new Int32Value { Value = 1 }, Int32Value.Parser.ParseJson("1")); in IndividualWrapperTypes()
232 Assert.AreEqual(new Int32Value { Value = 1 }, Int32Value.Parser.ParseJson("\"1\"")); in IndividualWrapperTypes()
253 var parsed = TestAllTypes.Parser.ParseJson(json); in StringToInt32_Valid()
272 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToInt32_Invalid()
[all …]
/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/
DJsonParserTest.cs79 Assert.AreEqual(expected, TestAllTypes.Parser.ParseJson(json)); in OriginalFieldNameAccepted()
198 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in RepeatedField_NullElementProhibited()
205 Assert.AreEqual(new TestAllTypes(), TestAllTypes.Parser.ParseJson(json)); in RepeatedField_NullOverallValueAllowed()
214 Assert.Throws<InvalidProtocolBufferException>(() => TestMap.Parser.ParseJson(json)); in MapField_NullValueProhibited()
221 Assert.AreEqual(new TestMap(), TestMap.Parser.ParseJson(json)); in MapField_NullOverallValueAllowed()
227 … Assert.AreEqual(new StringValue { Value = "foo" }, StringValue.Parser.ParseJson("\"foo\"")); in IndividualWrapperTypes()
228 Assert.AreEqual(new Int32Value { Value = 1 }, Int32Value.Parser.ParseJson("1")); in IndividualWrapperTypes()
230 Assert.AreEqual(new Int32Value { Value = 1 }, Int32Value.Parser.ParseJson("\"1\"")); in IndividualWrapperTypes()
251 var parsed = TestAllTypes.Parser.ParseJson(json); in StringToInt32_Valid()
270 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToInt32_Invalid()
[all …]
/third_party/boost/libs/spirit/test/qi/
Dtest.hpp17 template <typename Char, typename Parser>
18 bool test(Char const* in, Parser const& p, bool full_match = true) in test()
31 template <typename Char, typename Parser, typename Skipper>
32 bool test(Char const* in, Parser const& p in test()
46 template <typename Char, typename Parser>
47 bool binary_test(Char const* in, std::size_t size, Parser const& p, in binary_test()
59 template <typename Char, typename Parser, typename Skipper>
60 bool binary_test(Char const* in, std::size_t size, Parser const& p, in binary_test()
72 template <typename Char, typename Parser, typename Attr>
73 bool test_attr(Char const* in, Parser const& p in test_attr()
[all …]
/third_party/pyyaml/lib3/yaml/
Dloader.py11 class BaseLoader(Reader, Scanner, Parser, Composer, BaseConstructor, BaseResolver):
16 Parser.__init__(self)
21 class FullLoader(Reader, Scanner, Parser, Composer, FullConstructor, Resolver):
26 Parser.__init__(self)
31 class SafeLoader(Reader, Scanner, Parser, Composer, SafeConstructor, Resolver):
36 Parser.__init__(self)
41 class Loader(Reader, Scanner, Parser, Composer, Constructor, Resolver):
46 Parser.__init__(self)
55 class UnsafeLoader(Reader, Scanner, Parser, Composer, Constructor, Resolver):
60 Parser.__init__(self)
/third_party/pyyaml/lib/yaml/
Dloader.py11 class BaseLoader(Reader, Scanner, Parser, Composer, BaseConstructor, BaseResolver):
16 Parser.__init__(self)
21 class FullLoader(Reader, Scanner, Parser, Composer, FullConstructor, Resolver):
26 Parser.__init__(self)
31 class SafeLoader(Reader, Scanner, Parser, Composer, SafeConstructor, Resolver):
36 Parser.__init__(self)
41 class Loader(Reader, Scanner, Parser, Composer, Constructor, Resolver):
46 Parser.__init__(self)
55 class UnsafeLoader(Reader, Scanner, Parser, Composer, Constructor, Resolver):
60 Parser.__init__(self)
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Remarks/
DBitstreamRemarkParser.cpp42 static Error parseRecord(BitstreamMetaParserHelper &Parser, unsigned Code) { in parseRecord() argument
43 BitstreamCursor &Stream = Parser.Stream; in parseRecord()
56 Parser.ContainerVersion = Record[0]; in parseRecord()
57 Parser.ContainerType = Record[1]; in parseRecord()
63 Parser.RemarkVersion = Record[0]; in parseRecord()
69 Parser.StrTabBuf = Blob; in parseRecord()
75 Parser.ExternalFilePath = Blob; in parseRecord()
89 static Error parseRecord(BitstreamRemarkParserHelper &Parser, unsigned Code) { in parseRecord() argument
90 BitstreamCursor &Stream = Parser.Stream; in parseRecord()
103 Parser.Type = Record[0]; in parseRecord()
[all …]
/third_party/node/src/
Dnode_http_parser.cc186 class Parser : public AsyncWrap, public StreamListener { class
188 Parser(BindingData* binding_data, Local<Object> wrap) in Parser() function in node::__anon439301180111::Parser
200 SET_MEMORY_INFO_NAME(Parser)
201 SET_SELF_SIZE(Parser) in SET_SELF_SIZE() argument
469 new Parser(binding_data, args.This()); in New()
474 Parser* parser; in Close()
482 Parser* parser; in Free()
508 Parser* parser; in Execute()
529 Parser* parser; in Finish()
567 Parser* parser; in Initialize()
[all …]
/third_party/node/deps/acorn/acorn/dist/
Dacorn.d.ts38 class Parser { class
40 parse(this: Parser): Node
41 static parse(this: typeof Parser, input: string, options: Options): Node
42 … static parseExpressionAt(this: typeof Parser, input: string, pos: number, options: Options): Node
43 static tokenizer(this: typeof Parser, input: string, options: Options): {
47 …static extend(this: typeof Parser, ...plugins: ((BaseParser: typeof Parser) => typeof Parser)[]): …
60 constructor(p: Parser, start: Position, end: Position)
70 constructor(parser: Parser, pos: number, loc?: SourceLocation)
165 …constructor(token: string, isExpr: boolean, preserveSpace: boolean, override?: (p: Parser) => void)
201 constructor(p: Parser)
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/pnacl-llvm/include/llvm/Bitcode/NaCl/
DNaClBitcodeParser.h346 NaClBitcodeParserListener(NaClBitcodeParser *Parser) in NaClBitcodeParserListener() argument
347 : Parser(Parser), GlobalBlockID(naclbitc::BLOCKINFO_BLOCK_ID) {} in NaClBitcodeParserListener()
361 NaClBitcodeParser *Parser; variable
378 NaClBitcodeParser *Parser; variable
381 ErrorHandler(NaClBitcodeParser *Parser, NaClBitstreamCursor &Cursor) in ErrorHandler() argument
382 : NaClBitstreamCursor::ErrorHandler(Cursor), Parser(Parser) {} in ErrorHandler()
385 Parser->FatalAt(getCurrentBitNo(), ErrorMessage); in Fatal()
438 NaClBitcodeParser Parser(BlockID, this); in ParseBlock()
439 return Parser.ParseThisBlock(); in ParseBlock()
516 NaClBitcodeParser *CallingParser = Listener->Parser; in ParseThisBlock()
[all …]
/third_party/boost/libs/spirit/repository/test/qi/
Dtest.hpp17 template <typename Char, typename Parser>
18 inline bool test(Char const* in, Parser const& p, bool full_match = true) in test()
31 template <typename Char, typename Parser, typename Skipper>
32 inline bool test(Char const* in, Parser const& p in test()
46 template <typename Char, typename Parser, typename Attr>
47 inline bool test_attr(Char const* in, Parser const& p in test_attr()
61 template <typename Char, typename Parser, typename Attr, typename Skipper>
62 inline bool test_attr(Char const* in, Parser const& p in test_attr()
/third_party/protobuf/src/google/protobuf/compiler/
Dparser.cc183 Parser::Parser() in Parser() function in google::protobuf::compiler::Parser
192 Parser::~Parser() {} in ~Parser()
196 inline bool Parser::LookingAt(const char* text) { in LookingAt()
200 inline bool Parser::LookingAtType(io::Tokenizer::TokenType token_type) { in LookingAtType()
204 inline bool Parser::AtEnd() { return LookingAtType(io::Tokenizer::TYPE_END); } in AtEnd()
206 bool Parser::TryConsume(const char* text) { in TryConsume()
215 bool Parser::Consume(const char* text, const char* error) { in Consume()
224 bool Parser::Consume(const char* text) { in Consume()
233 bool Parser::ConsumeIdentifier(std::string* output, const char* error) { in ConsumeIdentifier()
244 bool Parser::ConsumeInteger(int* output, const char* error) { in ConsumeInteger()
[all …]

12345678910>>...24