renatahodovan / grammarinator

ANTLR v4 grammar-based test generator
Other
340 stars 61 forks source link

Enable labeled alternatives to start their name with their rule name #191

Closed renatahodovan closed 9 months ago

renatahodovan commented 9 months ago

In ANTLR, there is no such restriction on the name of a labeled alternative that it cannot start with the name of its container rule. The only restriction is that it cannot match completly with any rule name. The patch removes such a mistaken restriction from the Grammarinator parse implementation.

coveralls commented 9 months ago

Coverage Status

coverage: 88.321%. remained the same when pulling 9828564f4ca1123be10d5d48d1e747243411da2e on label-prefix into 12c9daaaa0c1c5aa521c64e7cfe3d55053360c6b on master.