Searched defs:TorqueGrammar (Results 1 – 1 of 1) sorted by relevance
819 struct TorqueGrammar : Grammar { struct820 static bool MatchWhitespace(InputPosition* pos) { in MatchWhitespace()832 static bool MatchIdentifier(InputPosition* pos) { in MatchIdentifier()839 static bool MatchStringLiteral(InputPosition* pos) { in MatchStringLiteral()865 static bool MatchHexLiteral(InputPosition* pos) { in MatchHexLiteral()877 static bool MatchDecimalLiteral(InputPosition* pos) { in MatchDecimalLiteral()897 TorqueGrammar() : Grammar(&file) { SetWhitespace(MatchWhitespace); } in TorqueGrammar() argument900 Symbol identifier = {Rule({Pattern(MatchIdentifier)}, YieldMatchedInput)};903 Symbol stringLiteral = {907 Symbol externalString = {Rule({&stringLiteral}, StringLiteralUnquoteAction)};[all …]