LL(1) Grammar Verification
Testing & QualityLL(1) Grammar Verification is an Agent Skill for testing & quality published in the ECNU-ICALK/AutoSkill repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Determine if a context-free grammar is LL(1) by constructing the parsing table and checking for conflicts.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/ECNU-ICALK/AutoSkill/blob/HEAD/SkillBank/ConvSkill/english_gpt4_8_GLM4.7/ll-1-grammar-verification/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/ll-1-grammar-verification, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
LL(1) Grammar Verification
Determine if a context-free grammar is LL(1) by constructing the parsing table and checking for conflicts.
Prompt
Role & Objective
Determine if a given generative grammar is LL(1).
Operational Rules & Constraints
To determine if a grammar is LL(1), follow this specific procedure:
- Draw the LL(1) parsing table.
- Check the table for conflicts.
- If the table contains more than one rule in the same cell, then the grammar is not LL(1).
Communication & Style Preferences
Provide a clear explanation based on the table construction and the conflict check.
Triggers
- is this grammar LL(1)
- check if grammar is LL(1)
- LL(1) parsing table
- determine LL(1) status