Skip to main content

Documentation Generation

Documentation generation in Starlasu automatically creates comprehensive documentation from your ASTs and language definitions.

Generated Documentation

API Documentation

  • Class References: Complete class and interface documentation
  • Method Signatures: Function and method documentation
  • Property Details: Field and property descriptions
  • Type Information: Type definitions and constraints

Language Documentation

  • Grammar Rules: Language syntax and structure
  • Examples: Code examples and usage patterns
  • Best Practices: Language-specific guidelines
  • Migration Guides: Language evolution documentation

Output Formats

Web Documentation

  • HTML: Web-based documentation
  • Markdown: Plain text documentation
  • PDF: Printable documentation
  • Interactive: Searchable and navigable docs

API References

  • Javadoc: Java-style documentation
  • JSDoc: JavaScript documentation
  • XML Documentation: .NET-style documentation
  • Custom Formats: Project-specific documentation

Benefits

  • Automation: Generate docs automatically from code
  • Consistency: Maintain consistent documentation style
  • Completeness: Ensure all elements are documented
  • Maintenance: Keep docs in sync with code changes

Implementation

Starlasu provides:

  • Documentation Generators: Base classes for building doc generators
  • Template System: Customizable documentation templates
  • Format Support: Multiple output format support
  • Integration: Work with existing documentation tools