jflap_trace
Trace an input string step by step through a JFLAP automaton, returning states, remaining input, and stack or tape contents for PDA or Turing machine analysis.
Instructions
Execute a step-by-step configuration trace of an input string on an automaton. Returns the exact trace of states, remaining input, stack contents (for PDA), or tape contents (for Turing machine). For PDAs, acceptance mode can be explicitly set to 'final_state' or 'empty_stack'.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file": "<file>"
},
"name": "jflap_trace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Path to the .jff file | |
| input | No | Input string to trace (default empty string) | |
| acceptance_mode | No | For PDAs: explicit acceptance criterion ('final_state' or 'empty_stack'). |