jflap_convert_model
Convert JFLAP models across formalisms: FSA to regular expression or regular grammar, regular grammar to FSA, and CFG to PDA or PDA to CFG for formal-language analysis and transformation.
Instructions
Perform cross-formalism conversion: FSA to Regular Expression ('fsa_to_re'), FSA to Regular Grammar ('fsa_to_rg'), Regular Grammar to FSA ('rg_to_fsa'), CFG to PDA ('cfg_to_pda'), or PDA to CFG ('pda_to_cfg').
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": {
"conversion": "<conversion>",
"input_file": "<input_file>"
},
"name": "jflap_convert_model"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | LL or LR mode for cfg_to_pda (default 'll') | |
| conversion | Yes | Type of conversion | |
| input_file | Yes | Input model .jff file | |
| output_file | No | Destination model .jff file (optional for fsa_to_re) |