This forum has been archived. Please start a new discussion on GitHub.

Adding docstrings to generated code?


With slice2html, it is possible to generate documentation from .ice files, but I was wondering if it would be possible to add the same kind of functionality to other slice generators?
It would be nice to have the docstrings from .ice files for functions and classes also as docstrings for functions and classes in the generated code. This could be useful for interactive help on clients for instance.

(I'm thinking Python here, but it might also apply to other languages?)



  • dwayne
    dwayne St. John's, Newfoundland
    With Ice 3.4b slice comments are preserved in the generated code with the Java, C# and Python Slice compilers. You should give it a try.
  • Ah, I see, nice! :D