jflap_grammar_operation
Parse grammar strings with CYK or brute-force, clean lambda, unit, and useless productions, or compute FIRST/FOLLOW sets and LL(1) parseability from JFLAP grammar files.
Instructions
Execute grammar operations in JFLAP: parse a string ('parse') using CYK or Brute-force parser, remove lambda, unit, and useless productions ('clean'), or compute FIRST and FOLLOW sets and test LL(1) parseability ('first_follow').
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": {
"operation": "<operation>",
"file": "<file>"
},
"name": "jflap_grammar_operation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Path to the grammar .jff file | |
| input | No | Target string to parse (required for 'parse') | |
| operation | Yes | Grammar operation to execute | |
| output_file | No | Destination .jff file (required for 'clean') |