CyberZHG / toolbox

https://cyberzhg.github.io/toolbox/ Encoding and parsing tools.
GNU General Public License v3.0
949 stars 81 forks source link

Incorrect result with first #11

Closed michael-kamel closed 5 years ago

michael-kamel commented 5 years ago

Computing the first for the following grammar

S -> A B C D
A -> b | ϵ
B -> c
C -> d
D -> e

adds ϵ to the first of S which is incorrect.

CyberZHG commented 5 years ago

Thanks. I've fixed this case.