Skip to content

重新实现基于ItemSets的lrparse函数 #19

Description

@acodercc

现在的lrparse函数是查s/r表的,但s/r表是最终的确定型的动作表。

如果想要使jsbison能够支持更丰富的自定义动作,比如caliburn所要求用到的自动分号补全等等功能,那么查s/r表决定动作,不够灵活。

所以取消s/r表的生成,新增加一个ilrparse函数,直接根据itemsets表,决定动作。

甚至再下一步,直接根据cfg/productions/firsts/follows表来决定自动机动作。

这时就可以在决定动作时,增加更多的自定义功能。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions