Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
JastAdd
relational-rags
Commits
d0113c6b
Commit
d0113c6b
authored
Jul 15, 2020
by
René Schöne
Browse files
Fix NTA token parsing of fully-qualified type names.
parent
091df7bc
Pipeline
#7331
passed with stages
in 2 minutes and 49 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main/jastadd/RelAst.parser
View file @
d0113c6b
...
...
@@ -79,8 +79,8 @@ Component component =
// NTA
| SLASH ID COL s_type_use.u SLASH {: return new NTAComponent(ID, u); :}
| SLASH s_type_use.u SLASH {: return new NTAComponent(u.getID(), u); :}
// NTA Token
(same as NTA)
| SLASH LT ID COL
s_
type_use.u GT SLASH {: return new NTATokenComponent(ID, u); :}
// NTA Token
| SLASH LT ID COL type_use.u GT SLASH {: return new NTATokenComponent(ID, u); :}
| SLASH LT ID GT SLASH {: return new NTATokenComponent(ID, new SimpleTypeUse("String")); :}
// Token
| LT ID COL type_use.u GT {: return new TokenComponent(ID, u); :}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment