roop / citron

An LALR Parser Generator for Swift

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Generated parser should import CitronParserModule?

ColMcp opened this issue · comments

citron's Package.swift creates library products CitronParserModule and CitronLexerModule. My project's Package.swift has CitronParserModule as a dependency. However the parser generated by citron does not import CitronParserModule and so fails to compile. I manually added the import and my parser compiled OK but manually editing a generated file isn't a good plan.

Is there another way for me to make CitronParserModule available to the generated parser or does citron need fixed?

Having now read the excellent documentation a bit more closely I have discovered the %preface directive. Sorry for the noise.