Skip to main content



      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 18:21 Go to next message
Eclipse UserFriend
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 18:29 Go to previous message
Eclipse UserFriend
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 18:37] by 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: Wed Jul 16 06:35:12 EDT 2025

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

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

Back to the top