-
Notifications
You must be signed in to change notification settings - Fork 50
Remove nothrow and data from the 1.4 grammar
#425
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,10 +9,11 @@ | |
| t_HASH = r'\#' | ||
|
|
||
| keywords_dml12 = dict(keywords_common) | ||
| for kw in ['parameter', 'trait']: | ||
| reserved_idents = reserved_idents_common | ||
| for kw in ['parameter', 'trait', 'nothrow', 'data']: | ||
| keywords_dml12[kw] = kw.upper() | ||
| tokens += (kw.upper(),) | ||
| reserved_idents = reserved_idents_common + (kw.upper(),) | ||
| reserved_idents = reserved_idents + (kw.upper(),) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. wait so the old code failed to properly have
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I vote against that because it complicates code for no gain. The gain of keeping it reserved is to open for extending syntax in some ways, like allowing |
||
|
|
||
| def t_ID(t): | ||
| r'[A-Za-z_][\w_]*' | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,4 +30,5 @@ method init() { | |
| local int port; | ||
| local int size; | ||
| local int throws; | ||
| local int parameter; | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.