Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Extra libraries, Code snippets, applications etc. » U++ Esc Interpreter, Esc Macros and templates » is there any document about how C++ code interoperate with ESC scripting language?
is there any document about how C++ code interoperate with ESC scripting language? [message #61218] Thu, 12 December 2024 02:58 Go to next message
Satervalley is currently offline  Satervalley
Messages: 20
Registered: December 2022
Promising Member
I searched and found nothing.
Re: is there any document about how C++ code interoperate with ESC scripting language? [message #61219 is a reply to message #61218] Thu, 12 December 2024 08:38 Go to previous messageGo to next message
Oblivion is currently offline  Oblivion
Messages: 1212
Registered: August 2007
Senior Contributor
Hi,
Quote:
I searched and found nothing.


OK, I'll take this as an opportunity to write a short tutorial about it (possibly this weekend), as the ESC scripting language is very useful, but in the meantime I would suggest you examine the official example for basics or the source code/examples of EscPainter package for more advanced stuff, on how it interacts with C++.

But basically:

1) You wrote an ESC script (possibly with *.esc or *.usc extension), Scan it and then Execute it using the Upp::Execute function. And it allows you to extract the result of the executed script so that you can use it in C++ code, (should you require). In the above mentioned package, the result is an Upp::Image.

If you have any questions, I'll try to answer them.

Best regards,
Oblivion


[Updated on: Thu, 12 December 2024 08:59]

Report message to a moderator

Re: is there any document about how C++ code interoperate with ESC scripting language? [message #61222 is a reply to message #61219] Thu, 12 December 2024 14:19 Go to previous message
Satervalley is currently offline  Satervalley
Messages: 20
Registered: December 2022
Promising Member
thx. I'll read those source codes that you mentioned.
I've read the esc.h and esc.cpp code, and cann't have a clear concept of how to use these classes, and there is no comment Sad . It's very good if you document them Smile
Previous Topic: [BUG: fixed] Esc Input function doesn't actually return an array of elements.
Next Topic: A simple macro to run LazyGit for the active package via TheIDE
Goto Forum:
  


Current Time: Sun Jun 15 12:12:46 CEST 2025

Total time taken to generate the page: 0.04355 seconds