private void SkipIf(UnityEditor.iOS.Xcode.PBX.TokenType type) { if (this.Tok() == type) { this.Inc(); } }
private void ScanOperatorSpecific(Token tok, UnityEditor.iOS.Xcode.PBX.TokenType type) { tok.type = type; tok.begin = this.pos; this.pos++; tok.end = this.pos; tok.line = this.line; }
public static PBXElementString ParseIdentifierAST(IdentifierAST ast, TokenList tokens, string text) { Token token = tokens[ast.value]; UnityEditor.iOS.Xcode.PBX.TokenType type = token.type; if (type != UnityEditor.iOS.Xcode.PBX.TokenType.String) { if (type != UnityEditor.iOS.Xcode.PBX.TokenType.QuotedString) { throw new Exception("Internal parser error"); } } else { return(new PBXElementString(text.Substring(token.begin, token.end - token.begin))); } return(new PBXElementString(PBXStream.UnquoteString(text.Substring(token.begin, token.end - token.begin)))); }