DSL with a free text [message #1769897] |
Fri, 04 August 2017 18:35 |
Serge Lamikhov Messages: 26 Registered: May 2016 |
Junior Member |
|
|
Hi,
I am trying to implement a parser for not very formalized DSL that already exists and cannot be modified.
It looks like the following:
~Instruction name:
VABS16
~Instruction Description:
Vector Absolute 16-bit Word Parts
Other multi line input
~More structured section
Number1 Name1 Args1
Number2 Name2 Args2
Would you please advise how my parser and terminals should be implemented for free text multi line input where tilde starts a new section?
I think that state dependent lexer is required for this purpose. Is it possible to accomplish this within Xtext?
Thank you
[Updated on: Fri, 04 August 2017 18:50] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03118 seconds