-
Notifications
You must be signed in to change notification settings - Fork 194
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
Fix #96 Add EBNF grammar for ROS2 names in self-testing python script #97
base: gh-pages
Are you sure you want to change the base?
Conversation
Some things to clarify (consider clarifying in the article):
|
Thanks for putting the current state into a pr, that's easier to track.
I'd say yes, so long as the contents of
I would say no, the section for name tokes says:
Since
I suppose that it could, but the document does not appear to be clear on that point right now. I vaguely remember discussing it, but I don't see it in the issue history at the moment, so I'll open an issue to address that concern: #98
Yes, that is described in the document I as:
It is also mentioned later in the document in more explicit terms.
I think that is find for the script, for now. I imagine we'll want to limit what goes there, but I also don't think |
I just wanted to clarify my response to:
The document says, more specifically:
So, it cannot start with a numeric (so Thanks @dhood for pointing this out. |
Ah, somehow I missed the "token" bit. That makes the EBNF simpler to write. Updated the PR, added more positive and negative examples to tests. |
Prototype for #96. Since last time I extended a bit. Because of the fully-qualified vs. non-fully-qualified, the grammar has grown a bit.
The grammar still does not prevent double underscores, the python script around it can handle that much easier I think.
The script itself does not yet handle maximum name length constraints.