개발자는 ParseKit입니다.
내가 질문을 이해하지만 당신은 방법을 찾고 있다면 PKTokenizer
는 (애플 스크립트처럼) 한 줄 주석 마커로 --
을 인식하게 확실하지 않다, 이것은 그 것이다 :
PKTokenizer *t = [PKTokenizer tokenizerWithString:str];
// make sure `--` is recognized as a single multi-char token
[t.symbolState add:@"--"];
// designate `--` as a single-line comment marker
[t.commentState addSingleLineStartMaker:@"--"];
// make sure `commentState` handles `-` chars first (to check for comments)
[t setTokenizerState:t.commentState from:'-' to:'-'];
자세한 내용은 Tokenizer documentation에 설명되어 있습니다.