Skip to content

Commit

Permalink
Trace advance_parser() calls in comments (#39)
Browse files Browse the repository at this point in the history
Trace advance_parser() calls in comments.
  • Loading branch information
v-jkegler authored Nov 4, 2024
1 parent 24847aa commit ae0bd15
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion parser/src/constraint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,10 @@ impl Constraint {
Ok(CommitResult::from_step_result(&self.last_res))
}

/// This commits the sampled token (if any), and sees if this forces any more tokens
/// commit_token() is a top-level method in this file and is called indirectly via
/// the advance_parser() method of the LLIinterpreter trait in py.rs.
///
/// commit_token() commits the sampled token (if any), and sees if this forces any more tokens
/// on the output (if ff_tokens are enabled in InferenceCapabilities).
pub fn commit_token(&mut self, sampled_token: Option<TokenId>) -> Result<CommitResult> {
loginfo!(self.parser.logger, "\ncommit_token({:?})", sampled_token);
Expand Down

0 comments on commit ae0bd15

Please sign in to comment.