Lines Matching refs:Rule
900 Symbol identifier = {Rule({Pattern(MatchIdentifier)}, YieldMatchedInput)};
904 Rule({Pattern(MatchStringLiteral)}, YieldMatchedInput)};
907 Symbol externalString = {Rule({&stringLiteral}, StringLiteralUnquoteAction)};
911 Rule({Pattern(MatchDecimalLiteral)}, YieldMatchedInput),
912 Rule({Pattern(MatchHexLiteral)}, YieldMatchedInput)};
919 Rule({Token("("), &type, Token(")")}),
920 Rule({CheckIf(Token("constexpr")), &identifier}, MakeBasicTypeExpression),
921 Rule({Token("builtin"), Token("("), typeList, Token(")"), Token("=>"),
926 Symbol type = {Rule({&simpleType}), Rule({&type, Token("|"), &simpleType},
931 Rule({Token("<"),
938 Rule({Token("<"), typeList, Token(">")})};
945 Rule({Token("("), List<TypeExpression*>(Sequence({&type, Token(",")})),
948 Rule({Token("("), typeList, Token(")")},
952 Symbol labelParameter = {Rule(
958 Symbol optionalReturnType = {Rule({Token(":"), &type}),
959 Rule({}, MakeVoidType)};
973 Rule({&identifier, Token(":"), &type}, MakeNameAndType)};
977 Rule({Token("("), List<NameAndTypeExpression>(&nameAndType, Token(",")),
983 Rule({¶meterListNoVararg}),
984 Rule({Token("("),
993 result->AddRule(Rule({Token(s)}, YieldMatchedInput)); in OneOf()
1001 *result = {Rule({nextLevel}), in BinaryOperator()
1002 Rule({result, op, nextLevel}, MakeBinaryOperator)}; in BinaryOperator()
1011 Rule({Token("++")},
1014 Rule({Token("--")},
1020 Rule(
1023 Rule({&primaryExpression, Token("."), &identifier},
1025 Rule({&primaryExpression, Token("["), expression, Token("]")},
1029 Symbol argumentList = {Rule(
1034 Rule({&identifier, TryOrDefault<TypeList>(&genericSpecializationTypeList),
1040 Rule({&callExpression}),
1041 Rule({&locationExpression},
1043 Rule({&decimalLiteral}, MakeNumberLiteralExpression),
1044 Rule({&stringLiteral}, MakeStringLiteralExpression),
1045 Rule({&identifier, Token("{"), List<Expression*>(expression, Token(",")),
1048 Rule({Token("("), expression, Token(")")})};
1052 Rule({&primaryExpression}),
1053 Rule({OneOf({"+", "-", "!", "~"}), &unaryExpression}, MakeUnaryOperator),
1054 Rule({&incrementDecrementOperator, &locationExpression},
1056 Rule({&locationExpression, &incrementDecrementOperator},
1075 Rule({shiftExpression}),
1076 Rule({shiftExpression, OneOf({"<", ">", "<=", ">="}), shiftExpression},
1089 Rule({bitwiseExpression}),
1090 Rule({&logicalAndExpression, Token("&&"), bitwiseExpression},
1095 Rule({&logicalAndExpression}),
1096 Rule({&logicalOrExpression, Token("||"), &logicalAndExpression},
1101 Rule({&logicalOrExpression}),
1102 Rule({&logicalOrExpression, Token("?"), expression, Token(":"),
1108 Rule({Token("=")}, YieldDefaultValue<base::Optional<std::string>>),
1109 Rule({OneOf({"*=", "/=", "%=", "+=", "-=", "<<=", ">>=", ">>>=", "&=",
1115 Rule({&conditionalExpression}),
1116 Rule({&locationExpression, &assignmentOperator, &assignmentExpression},
1120 Symbol block = {Rule({CheckIf(Token("deferred")), Token("{"),
1126 Rule({Token("label"), &identifier,
1131 Symbol expressionWithSource = {Rule({expression}, MakeExpressionWithSource)};
1135 Rule({Token("["), Optional<Expression*>(expression), Token(":"),
1141 Rule({OneOf({"let", "const"}), &identifier, Token(":"), &type},
1146 Rule({OneOf({"let", "const"}), &identifier, Token(":"), &type, Token("="),
1153 Rule({&block}),
1154 Rule({expression, Token(";")}, MakeExpressionStatement),
1155 Rule({Token("return"), Optional<Expression*>(expression), Token(";")},
1157 Rule({Token("tail"), &callExpression, Token(";")}, MakeTailCallStatement),
1158 Rule({Token("break"), Token(";")}, MakeBreakStatement),
1159 Rule({Token("continue"), Token(";")}, MakeContinueStatement),
1160 Rule({Token("goto"), &identifier,
1163 Rule({OneOf({"debug", "unreachable"}), Token(";")}, MakeDebugStatement)};
1167 Rule({&atomarStatement}),
1168 Rule({&varDeclaration, Token(";")}),
1169 Rule({&varDeclarationWithInitialization, Token(";")}),
1170 Rule({Token("if"), CheckIf(Token("constexpr")), Token("("), expression,
1174 Rule(
1181 Rule({Token("try"), &block, NonemptyList<LabelBlock*>(&labelBlock)},
1183 Rule({OneOf({"assert", "check"}), Token("("), &expressionWithSource,
1186 Rule({Token("while"), Token("("), expression, Token(")"),
1189 Rule({Token("for"), Token("("), &varDeclaration, Token("of"), expression,
1193 Rule({Token("for"), Token("("),
1201 Rule({Token("case"), Token("("),
1208 Rule({&block}, CastParseResult<Statement*, base::Optional<Statement*>>),
1209 Rule({Token(";")}, YieldDefaultValue<base::Optional<Statement*>>)};
1213 Rule({Token("const"), &identifier, Token(":"), &type, Token("="),
1216 Rule({Token("const"), &identifier, Token(":"), &type, Token("generates"),
1219 Rule({Token("type"), &identifier,
1227 Rule({Token("type"), &identifier, Token("="), &type, Token(";")},
1229 Rule({Token("extern"),
1237 Rule({Token("extern"), CheckIf(Token("javascript")), Token("builtin"),
1241 Rule({Token("extern"), Token("runtime"), &identifier,
1244 Rule({Optional<std::string>(
1251 Rule({CheckIf(Token("javascript")), Token("builtin"), &identifier,
1255 Rule({&identifier, &genericSpecializationTypeList,
1259 Rule({Token("struct"), &identifier, Token("{"),
1266 Rule({Token("module"), &identifier, Token("{"),
1270 Symbol file = {Rule({&file, &moduleDeclaration}, AddGlobalDeclaration),
1271 Rule({&file, &declaration}, AddGlobalDeclaration), Rule({})};