The parse trees generated by ANTLR consist only of rule nodes and do not contain information about the decisions made on alternations or quantifiers. However, tests generated by Grammarinator store such information in the form of alternative and quantifier nodes. To make these trees compatible, the current patch recreates the same structure that the generator produces in the trees obtained from parsed input.
The approach reuses the grammar graph implementation of processor, therefore it requires to define a lib_dir if included grammars are stored in a separate directory. To define such directories, similarily to grammarinator-process, grammarinator-parse also supports the --lib_dir CLI argument.
coverage: 85.614% (+1.8%) from 83.795%
when pulling b9e30cdf2357e15eacb79ba213fe5f9119abcd30 on adjust-parse
into c0717df507085635aa9740d4e427b4910e30c52f on master.
The parse trees generated by ANTLR consist only of rule nodes and do not contain information about the decisions made on alternations or quantifiers. However, tests generated by Grammarinator store such information in the form of alternative and quantifier nodes. To make these trees compatible, the current patch recreates the same structure that the generator produces in the trees obtained from parsed input. The approach reuses the grammar graph implementation of processor, therefore it requires to define a lib_dir if included grammars are stored in a separate directory. To define such directories, similarily to grammarinator-process, grammarinator-parse also supports the
--lib_dir
CLI argument.