renatahodovan / grammarinator

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

Support types in rule attribute definitions (args, locals, returns) #187

Closed akosthekiss closed 9 months ago

akosthekiss commented 9 months ago

Both prefix or postfix type notation are supported in addition to the already existing no-type notation. At the moment, types are only used (and meaningful) for args, where they become type hints in the generated python code.

coveralls commented 9 months ago

Coverage Status

coverage: 88.228% (-0.01%) from 88.242% when pulling 89a489f114123a699e450d6be69333e1dc16e37f on akosthekiss:rule-attr-types into c764e0046421adc1f8fc0a3fead1fc8dd5461cec on renatahodovan:master.