I came up with a very interesting java project, but I need to implement my own language, in which there will not be many functions so far. On the Internet, little is written about it. How to start and how can this be implemented? Here I have a JTextField and I write create rectangle (1,1,60,60) there, and somewhere in the code an object is created, plus it would be nice to call its functions from the script, but I can’t figure out how to
- Sorry for the offtopic, but why did not lua please? - Mr. Nomov
- Marat, do not excuse - ThisMan
- If the task is right and it is - your language, then I will not say anything, There can be absolutely nothing on the Internet. But if that, java has long been delivered with the javascript engine - Sergey
- I need my own functions and so that through this language I can access objects, just a modified convenient entry. I do not know whether it is possible to implement this through lua - Herrgott
- @Sergey, Javascript will be inconvenient in this case - Herrgott
|
1 answer
On the Internet, a lot about it is written. Look at DSL - Domain Specific Language. If you're already on java, then look in the direction of Scala - this is a JVM-based language, in which the creation of your DSL was given a significant role.
In addition, for java there are a lot of projects implementing scripting languages. For example :
- Good look tomorrow, I hope this will meet my expectations. Be sure to write it off - Herrgott
|