Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » EOL: How to parse Boolean
EOL: How to parse Boolean [message #1724240] Mon, 22 February 2016 13:16 Go to next message
Alireza Rouhi is currently offline Alireza RouhiFriend
Messages: 148
Registered: December 2015
Senior Member
Hi,

I have an expression like the following:
var boolStr: String = "not ((p and q) or not r)";


Here, p, q, and r are boolean variables.
Is there a method or feature like,
var bool: Boolean = parse(boolStr);

in EOL library to parse the string boolStr? How can I setup this situation?

Best regards,
Alireza
Re: EOL: How to parse Boolean [message #1724241 is a reply to message #1724240] Mon, 22 February 2016 13:20 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2163
Registered: July 2009
Location: York, UK
Senior Member

Hi Alireza,

There's no built-in support for this I'm afraid. If the strings you're interested in parsing are valid EOL expressions, I'd suggest creating a Java "tool" [1] that makes use of EolModule to parse/evaluate them.

Cheers,
Dimitris

[1] https://www.eclipse.org/epsilon/doc/articles/call-java-from-epsilon/
Re: EOL: How to parse Boolean [message #1724244 is a reply to message #1724241] Mon, 22 February 2016 13:25 Go to previous message
Alireza Rouhi is currently offline Alireza RouhiFriend
Messages: 148
Registered: December 2015
Senior Member
Dear Dimitris,

Hi,

Thanks a lot for your helps.

Best regards,
Alireza
Previous Topic:EVL: Constraint cross-referencing
Next Topic:traceability
Goto Forum:
  


Current Time: Wed Apr 24 15:41:48 GMT 2024

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

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

Back to the top