Generated parser should import CitronParserModule?
ColMcp opened this issue · comments
ColMcp commented
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?
ColMcp commented
Having now read the excellent documentation a bit more closely I have discovered the %preface
directive. Sorry for the noise.