Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xtext Error Recovery(After Parser encounters error/syntax mismatch/invalid token, it resume the parsing for rest of the lines/code)
Xtext Error Recovery [message #1803744] Fri, 08 March 2019 07:03
Santhiveeran S is currently offline Santhiveeran SFriend
Messages: 7
Registered: November 2018
Junior Member

Hi All,
In my grammar, I have some variable declarations and some print statement with enclosed in start and end scripts.

1 startscript example
2 print "enter into example"
3 let a="string" ioooo
4 print "varible="+a
5 endscript

I am getting parser error at line 3 as "Mismatched Input ' ' expecting 'endscript'

I understood, it is error. But my point is, the parser needs to continue parse the print statement of line number 4 and 5.

I read the blog
https://zarnekow.blogspot.com/2012/11/xtext-corner-7-parser-error-recovery.html

But I need to know where and what place I need to change/start.
Thanks in advance.








Previous Topic:[XCore] XcoreLang.xcore content is not allowed in Prolog
Next Topic:Grammar Problem
Goto Forum:
  


Current Time: Thu Apr 18 18:45:38 GMT 2024

Powered by FUDForum. Page generated in 0.01507 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top