Closed sourabh-k closed 7 years ago
Note that the toy programs treat continuous characters as one token.
Are you expecting A -> a b c d f h | a b c d e
and A -> a b c d f h | a b c d e | a b c d f
?
https://cyberzhg.github.io/toolbox/cfg2ll?grammar=QSAtPiBhIGIgYyBkIGYgaCB8IGEgYiBjIGQgZQ== https://cyberzhg.github.io/toolbox/lr0?grammar=QSAtPiBhIGIgYyBkIGYgaCB8IGEgYiBjIGQgZQ== https://cyberzhg.github.io/toolbox/lr1?grammar=QSAtPiBhIGIgYyBkIGYgaCB8IGEgYiBjIGQgZQ== https://cyberzhg.github.io/toolbox/lalr?grammar=QSAtPiBhIGIgYyBkIGYgaCB8IGEgYiBjIGQgZQ==
https://cyberzhg.github.io/toolbox/cfg2ll?grammar=QSAtPiBhIGIgYyBkIGYgaCB8IGEgYiBjIGQgZSB8IGEgYiBjIGQgZg== https://cyberzhg.github.io/toolbox/lr0?grammar=QSAtPiBhIGIgYyBkIGYgaCB8IGEgYiBjIGQgZSB8IGEgYiBjIGQgZg== https://cyberzhg.github.io/toolbox/lr1?grammar=QSAtPiBhIGIgYyBkIGYgaCB8IGEgYiBjIGQgZSB8IGEgYiBjIGQgZg== https://cyberzhg.github.io/toolbox/lalr?grammar=QSAtPiBhIGIgYyBkIGYgaCB8IGEgYiBjIGQgZSB8IGEgYiBjIGQgZg==
yeah that works fine ...
1 . A->abcdfh|abcde 2 A->abcdfh|abcde|abcdf