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

Lexical grammar does not follow DRM #1395

Open
pedro-w opened this issue May 27, 2021 · 0 comments
Open

Lexical grammar does not follow DRM #1395

pedro-w opened this issue May 27, 2021 · 0 comments
Labels
DRM DRM compliance issues

Comments

@pedro-w
Copy link
Contributor

pedro-w commented May 27, 2021

According to the DRM a name is allowed to start with a number (subject to other conditions) but this is not always the case. For example,

define constant 0xx = 23;

is allowed but

define constant 0yy = 24;

gives

Serious warning - Invalid syntax in constant-definer macro call.

/tmp/parser/parser.dylan:79.1-25: Serious warning - Skipping constant-definer macro call due to previous syntax error.
      ------------------------
      define constant 0yy = 24;
      ------------------------

This seems to depend on the first letter in the proposed name, specifically 'd', 'e', 's', 'x' are allowed, others give an error. (for example 123elephant would be allowed as the first letter is 'e')

Note that names starting with numbers are not recommended and rarely if ever used in Dylan code.

@cgay cgay added the DRM DRM compliance issues label May 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DRM DRM compliance issues
Projects
None yet
Development

No branches or pull requests

2 participants