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

RFC Docblock #8

Closed
SerafimArts opened this issue Aug 28, 2017 · 2 comments
Closed

RFC Docblock #8

SerafimArts opened this issue Aug 28, 2017 · 2 comments

Comments

@SerafimArts
Copy link
Member

SerafimArts commented Aug 28, 2017

About

Add docblock syntax.

Example

# This is description
# of type Something
type Something {
    # This is optional description of "helloWorld" field
    helloWorld: String
}
@SerafimArts SerafimArts changed the title Syntax implementations RFC Docstring Aug 28, 2017
@SerafimArts SerafimArts changed the title RFC Docstring RFC Docblock Aug 28, 2017
@SerafimArts SerafimArts self-assigned this Aug 28, 2017
@SerafimArts
Copy link
Member Author

SerafimArts commented Aug 28, 2017

Very hard to implement it

Problem

hoaproject/Compiler#74

Hotfix

Add preg_replace with (?:(?:\A|\n)\h*#[^\n]*)+\n\h*\b regexp and add preporcessing to transpile (transform) the comments skipped section into a format for docstring #11

Affects

Error will contain message like "Unexpected token T_MULTILINE_STRING on line XXX" if there is an error related to parsing the source code, but requires "Unexpected token T_DOCBLOCK on line XXX".

@SerafimArts
Copy link
Member Author

Not relevant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant