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?
|
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   |
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
Github page: https://github.com/ismail-yilmaz
Bobcat the terminal emulator: https://github.com/ismail-yilmaz/Bobcat
[Updated on: Thu, 12 December 2024 08:59] Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Sun Jun 15 12:12:46 CEST 2025
Total time taken to generate the page: 0.04355 seconds
|