Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Using import directive in interpreter view(Testing EOL operations)
Using import directive in interpreter view [message #1856230] Mon, 28 November 2022 23:21 Go to next message
Jörn Guy Süß is currently offline Jörn Guy SüßFriend
Messages: 320
Registered: July 2009
Location: Anstead, Brisbane, Queens...
Senior Member

I am using the EOL interpreter view to debug EOL code. The view allows the import statement, but when I am trying to call an EOL operation declared in the import I am getting an error stating it is undefined.
The same happens if I copy the declarations into the view. Is the view unable to interpret operation declarations?
Re: Using import directive in interpreter view [message #1856231 is a reply to message #1856230] Mon, 28 November 2022 23:29 Go to previous message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2165
Registered: July 2009
Location: York, UK
Senior Member

Hello,

Import statements work in the interpreter view but you'll need to use a platform:/resource path as shown below. Inline operations also seem to be working fine for me.

// bar() is defined in bar.eol under the bar project
import "platform:/resource/bar/bar.eol";

return foo() + bar();

operation foo() {
	return "foo";
}


I've added a note about this to the article.

Thanks,
Dimitris

[Updated on: Mon, 28 November 2022 23:37]

Report message to a moderator

Previous Topic:How to run an EOL program with a resource in memory prevously loaded
Next Topic:EMG built in operations fail
Goto Forum:
  


Current Time: Sat Apr 27 05:37:10 GMT 2024

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

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

Back to the top