jflap_simulate
Simulates input strings on JFLAP automata, returning accept/reject verdicts plus output strings or final tapes; supports optional PDA acceptance mode.
Instructions
Simulate one or more input strings on a JFLAP automaton (DFA, NFA, PDA, Turing Machine, Mealy, Moore). Returns accept/reject verdicts and output strings/final tapes. 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>",
"inputs": "<inputs>"
},
"name": "jflap_simulate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Path to the .jff file | |
| inputs | Yes | List of input strings to simulate (e.g. ['ab', 'aabb', '']) | |
| acceptance_mode | No | For PDAs: explicit acceptance criterion ('final_state' or 'empty_stack'). Only one criterion is applied. |