|need explanation regarding assignments [message #870552]
||Tue, 08 May 2012 16:23
| Tim Student
Registered: May 2012
I'm totaly new in Xtext and have a probably simple question.|
Here is my code.
Several different types of lines will be present in my language, here you only see two of them (activity_line and command_line).
line: activity_line |
activity_line: 'activity:' name=ID comment*
command_line: 'command:' ID comment*
comment: '#' ID*
Now the question:
What causes the assignment name=ID in rule activity_line. The generated editor recognizes equivalent the same at the command_line rule, when I only regard the Syntaxhighlighting, spell checking etc.
Can somebody tell me the difference of name=ID and ID?
Can I somehow use the 'name' as some kind of variable, where the explicit ID is stored? I can't understand that...
Thanks so far.
[Updated on: Tue, 08 May 2012 18:26]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01688 seconds