Skip to content

fuyingdi/ll1parser

Repository files navigation

ll1parser

Features:

  1. 计算文法的First集,Follow集,预测分析表
  2. 分析输入串是不是指定文法的句子

演示:

  1. 输入文法为
    E->TK
    K->+TK|@
    T->FM
    M->*FM|@
    F->i|(E)
    IMAGE
    IMAGE
    IMAGE IMAGE
  2. 输入文法为
    E->TK
    K->+TK|@
    T->FM
    M->*FM|@
    F->i|(E)
    F->[E]
    IMAGE IMAGE
  3. 输入文法为
    E->TK
    K->+TK|@
    T->FM
    M->*FM|@
    F->i|(E)
    F->[E]
    F->[F]
    IMAGE

About

python实现的ll(1)文法分析器

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages