Page 1 of 1

More universal programming language

Posted: February 15th, 2024, 11:54 am
by lestcape
Once CSPro have a lot of API in javascript should have sense also provide one of the follow:
  • A way to translate CSPro logic language to javascript. Can be provide the tokens and the gramatic of the language or better directly something functional: https://peggyjs.org/.
  • A way of write the logic in javascript instead/as an option, of the current cspro programing language.

Re: More universal programming language

Posted: February 26th, 2024, 8:31 am
by Gregory Martin
This is actually sort of on the way. If you open CSCode in 8.0, you can see that you can run JavaScript, executed via QuickJS. Our plan (for 8.1) is to allow JavaScript to be included as part of an application. One of the goals of the newly introduced Action Invoker is to create a cross-language scripting language.

Re: More universal programming language

Posted: February 27th, 2024, 4:59 pm
by lestcape
Excellent!! :D Thanks for all the works done Gregory and the team.

That will help others to create a CSPro clients for Linux, for the web and more. I never like the idea of the use of a custom language, but It wasn't until recently that it became apparent (thanks to all the work done on the javascript API) that the switch to using javascript was no longer going to be so complex.