Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
S → ASB | ab | SS A → aA | ε B → bB | ε
您可以通过两种方式获得“ab”这个词:S -> ab 或 S -> SS -> aAS -> aS -> abB -> ab
这就是你的语法模棱两可的原因:)