Lines Matching refs:NSString
47 - (id) initWithGrammarName:(NSString *)aGrammarName debuggerPort:(NSInteger)aPort
147 …[self sendToDebugger:[NSString stringWithFormat:@"ANTLR %d", DebugProtocolVersion] waitForResponse…
148 …[self sendToDebugger:[NSString stringWithFormat:@"grammar \"%@", [self grammarName]] waitForRespon…
154 NSString *response;
157 response = [[NSString alloc] initWithData:newLine encoding:NSUTF8StringEncoding];
168 - (void) sendToDebugger:(NSString *)message
173 - (void) sendToDebugger:(NSString *)message waitForResponse:(BOOL)wait
201 - (NSString *) grammarName
206 - (void) setGrammarName: (NSString *) aGrammarName
225 - (NSString *) escapeNewlines:(NSString *)aString
243 - (void) enterRule:(NSString *)ruleName
245 [self sendToDebugger:[NSString stringWithFormat:@"enterRule %@", ruleName]];
250 [self sendToDebugger:[NSString stringWithFormat:@"enterAlt %d", alt]];
253 - (void) exitRule:(NSString *)ruleName
255 [self sendToDebugger:[NSString stringWithFormat:@"exitRule %@", ruleName]];
260 [self sendToDebugger:[NSString stringWithFormat:@"enterSubRule %d", decisionNumber]];
265 [self sendToDebugger:[NSString stringWithFormat:@"exitSubRule %d", decisionNumber]];
270 [self sendToDebugger:[NSString stringWithFormat:@"enterDecision %d", decisionNumber]];
275 [self sendToDebugger:[NSString stringWithFormat:@"exitDecision %d", decisionNumber]];
280 …[self sendToDebugger:[NSString stringWithFormat:@"consumeToken %@", [self escapeNewlines:[t descri…
285 …[self sendToDebugger:[NSString stringWithFormat:@"consumeHiddenToken %@", [self escapeNewlines:[t …
290 …[self sendToDebugger:[NSString stringWithFormat:@"LT %d %@", i, [self escapeNewlines:[t descriptio…
295 [self sendToDebugger:[NSString stringWithFormat:@"mark %d", marker]];
299 [self sendToDebugger:[NSString stringWithFormat:@"rewind %d", marker]];
309 [self sendToDebugger:[NSString stringWithFormat:@"beginBacktrack %d", level]];
314 [self sendToDebugger:[NSString stringWithFormat:@"endBacktrack %d %d", level, successful ? 1 : 0]];
319 [self sendToDebugger:[NSString stringWithFormat:@"location %d %d", line, pos]];
340 - (void) semanticPredicate:(NSString *)predicate matched:(BOOL)result
342 …[self sendToDebugger:[NSString stringWithFormat:@"semanticPredicate %d %@", result?1:0, [self esca…
365 - (void) consumeNode:(unsigned)nodeHash ofType:(NSInteger)type text:(NSString *)text
367 [self sendToDebugger:[NSString stringWithFormat:@"consumeNode %u %d %@",
374 - (void) LT:(NSInteger)i foundNode:(unsigned)nodeHash ofType:(NSInteger)type text:(NSString *)text
376 [self sendToDebugger:[NSString stringWithFormat:@"LN %d %u %d %@",
389 [self sendToDebugger:[NSString stringWithFormat:@"nilNode %u", hash]];
392 - (void) createNode:(unsigned)hash text:(NSString *)text type:(NSInteger)type
394 [self sendToDebugger:[NSString stringWithFormat:@"createNodeFromToken %u %d %@",
403 [self sendToDebugger:[NSString stringWithFormat:@"createNode %u %d", hash, tokenIndex]];
408 [self sendToDebugger:[NSString stringWithFormat:@"becomeRoot %u %u", newRootHash, oldRootHash]];
413 [self sendToDebugger:[NSString stringWithFormat:@"addChild %u %u", treeHash, childHash]];
418 …[self sendToDebugger:[NSString stringWithFormat:@"setTokenBoundaries %u %d %d", nodeHash, tokenSta…