-
Notifications
You must be signed in to change notification settings - Fork 37
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
Added ebnf.md file #1987
base: main
Are you sure you want to change the base?
Added ebnf.md file #1987
Conversation
<item> ::= <comment> | <section> | ||
|
||
|
||
<module_comment> ::= (<single_module_comment> <new_line>)* <single_module_comment> (<new_line> | <eof>) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<module_comment> ::= (<single_module_comment> <new_line>)* <single_module_comment> (<new_line> | <eof>) | |
<module_comment> ::= (<single_module_comment> <new_line>)* (<single_module_comment> <eof>)? |
Would this be same / simpler?
Would this work?
<module_comment> ::= (<single_module_comment> <new_line>)* <single_module_comment> (<new_line> | <eof>) | |
<module_comment> ::= (<single_module_comment> (<new_line> | <eof>))* |
|
||
|
||
<module_comment> ::= (<single_module_comment> <new_line>)* <single_module_comment> (<new_line> | <eof>) | ||
<single_module_comment> ::= <doc_comment_marker> <opt_whitespace> <sentence>? <opt_whitespace> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<single_module_comment> ::= <doc_comment_marker> <opt_whitespace> <sentence>? <opt_whitespace> | |
<single_module_comment> ::= <doc_comment_marker> <space>* <sentence>? <space>* |
Should we have opt_whitespace
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we include the <newline> | <eof>
here only? And rename this to <module_comment_line>
?
|
||
|
||
|
||
<start_marker> ::= "--" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's rename this to section_start_marker
. Should we include the space here itself as that is required part of our syntax we just discussed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also I think the grammar would be easier to read if we do not define names for things that are ever used once.
No description provided.