Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Comments/Documentation #61

Open
inkeliz opened this issue Aug 23, 2022 · 0 comments
Open

Support for Comments/Documentation #61

inkeliz opened this issue Aug 23, 2022 · 0 comments

Comments

@inkeliz
Copy link
Owner

inkeliz commented Aug 23, 2022

Currently, we don't support comments or documentation comment.

We should be able to add comments such as:

// Represents the foo struct
struct foo inline {
      // Represents the bar content
      bar []char;
}

Also, the code-generator should include some default comment, which can be disable:

// Bar is Foo field (your_document.km:2)
// Represents the foo struct
func (x *Foo) Bar() string {

}

The first comment is the default, which must follow the language convention. The second line is the user-defined comment, if the field contains one of them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Stage 5: Extensions A
Development

No branches or pull requests

1 participant