jsbison icon indicating copy to clipboard operation
jsbison copied to clipboard

重新实现基于ItemSets的lrparse函数

Open acodercc opened this issue 10 years ago • 0 comments

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

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

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

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

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

acodercc avatar Dec 25 '14 10:12 acodercc