Home | History | Annotate | Download | only in gn

Lines Matching refs:Parser

10 #include "tools/gn/parser.h"
29 scoped_ptr<ParseNode> result = Parser::Parse(tokens, &err);
45 scoped_ptr<ParseNode> result = Parser::ParseExpression(tokens, &err);
54 // Expects the tokenizer or parser to identify an error at the given line and
63 scoped_ptr<ParseNode> result = Parser::Parse(tokens, &err);
72 // Expects the tokenizer or parser to identify an error at the given line and
81 scoped_ptr<ParseNode> result = Parser::ParseExpression(tokens, &err);
92 TEST(Parser, Literal) {
97 TEST(Parser, BinaryOp) {
116 TEST(Parser, FunctionCall) {
128 TEST(Parser, ParenExpression) {
146 TEST(Parser, OrderOfOperationsLeftAssociative) {
157 TEST(Parser, OrderOfOperationsEqualityBoolean) {
177 TEST(Parser, UnaryOp) {
183 TEST(Parser, List) {
209 TEST(Parser, Assignment) {
217 TEST(Parser, Accessor) {
229 TEST(Parser, Condition) {
259 TEST(Parser, OnlyCallAndAssignInBody) {
266 TEST(Parser, NoAssignmentInCondition) {
270 TEST(Parser, CompleteFunction) {
299 TEST(Parser, FunctionWithConditional) {
347 TEST(Parser, NestedBlocks) {
366 TEST(Parser, UnterminatedBlock) {
370 TEST(Parser, BadlyTerminatedNumber) {
374 TEST(Parser, NewlinesInUnusualPlaces) {
388 TEST(Parser, NewlinesInUnusualPlaces2) {
415 TEST(Parser, NewlineBeforeSubscript) {
433 TEST(Parser, SequenceOfExpressions) {
445 TEST(Parser, BlockAfterFunction) {
459 TEST(Parser, LongExpression) {
475 TEST(Parser, HangingIf) {
479 TEST(Parser, NegatingList) {