dsl - Issue while writing xtext grammar file -


निम्नलिखित मेरे व्याकरण का हिस्सा है

  TestLabelBase रिजल्टएक्सप्रेसआरएचएस देता है: 'VL:' पथ = STRING; वर्णमापनकर्ता: (एबीसी? = 'एबीसी' | def? '' डीईएफ '| जी? =' जीआई ');   

जब मैं निम्नलिखित नियम लिखता हूं TestLabel यह ठीक काम करता है:

  TestLabel रिजल्टएक्सप्रेसआरएचएस रिटर्न: TestLabelBase (modifier = AlphabetModifier) ​​?;   

लेकिन जब मैं TestLabel के लिए निम्नलिखित नियम का उपयोग करता हूं तो यह कहते हैं

एक अनिर्दिष्ट नियम कॉल की अनुमति नहीं है, जब 'चालू 'पहले से ही बनाया गया था।

  TestLabel रिजल्टएक्सप्रेसआरएचएस रिटर्न: (संशोधक = अल्फाबेटमॉडिफायर)? TestLabelBase;   

क्या आप कृपया इसके पीछे कारण बता सकते हैं?

है

आपको अपना नियम इन्हें बदलने की आवश्यकता है:

  TestLabel रिटर्न ResultExpressionRhs: (modifier = AlphabetModifier)? base = TestLabelBase;   

चीयर्स, स्टीव

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -