General Problem with Grammar and Generator [message #1802815] |
Sun, 17 February 2019 01:34  |
Eclipse User |
|
|
|
Hello again,
I tried a while to create a grammar and a generator for my thesis but get stucked. The Editor would do what I want, but the Generator doesn't find the needed item. I think there is a general problem in how to invent a language.
The Language is for Testing. I create Testcases for a framework. Mainly i call functions with arguments. Let's say I have PreCon, PostAction and TestStep.
In Teststep i have
TestStep:
'TestStep' '{'
number = INT '|'
act = (Function | ProjectFunction) '|'
react = CANOEFunction
'}'
;
Function:
name = 'WaitForMessage'
msg = Message
waittime = INT 'ms'|
name = 'WaitForTimeout'
waittime = INT 'ms' |
name = 'WaitForSignal'
//msg = Message
sig = MsgSignal
waittime = INT 'ms'
;
MsgSignal:
name = 'Msg1'
signal = (sig1| sig2) |
name = 'Mgs2'
signal = (sig1| sig2| sig3)
;
sig1:
name = 'name1'
option = ('opt1' |
'opt2' |
'op3' |
'opt4')
;
My generator doesn't find msgSignal.name or anything below this like msgsignal.option.
Maybe i need another way to declare my gramar or a function from the generator which i don't find.
thanks
Markus
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.08152 seconds