lark icon indicating copy to clipboard operation
lark copied to clipboard

Wrong type hit when transformer is provided

Open majkrzak opened this issue 3 years ago • 1 comments

When transformer is provided to the Parser constructor, the parse method may no longer return the parse 'ParseTree'

majkrzak avatar Aug 29 '22 16:08 majkrzak

Yes, that's true. Ideally parse should take a generic based on the transformer parameter (if given), and return the return type of its transform().

erezsh avatar Aug 29 '22 16:08 erezsh