User Tools

Site Tools


01_user_documentation:07_rgg_xl:02_xl:02_java

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
01_user_documentation:07_rgg_xl:02_xl:02_java [2025/05/28 17:02] sophiewachtel01_user_documentation:07_rgg_xl:02_xl:02_java [2025/08/25 09:11] (current) gaetan
Line 2: Line 2:
 ====== XL and Java syntax ====== ====== XL and Java syntax ======
  
-The programming language XL is defined as an extension of the Java programming language. Thus the XL programming language benefits from the well-grounded concepts of structured, modular and object-oriented programming on which the Java programming is based. Being an extension not only at the level of the language specification, but also at the binary level, all existing Java libraries can be addressed immediately by XL programmes. This introduces at once an enormous power, since the Java programming language is known for being a language with a comprehensive set of high-quality, freely available run-time libraries, including sophisticated graphical user interface components, internet communications, 2D- and 3D-graphics, and XML support.+The programming language XL is defined as an extension of the Java programming language. Thus the XL programming language benefits from the well-grounded concepts of structured, modular and object-oriented programming on which the Java programming is based. Being an extension not only at the level of the language specification, but also at the binary level, all existing Java libraries can be addressed immediately by XL programs. This introduces at once an enormous power, since the Java programming language is known for being a language with a comprehensive set of high-quality, freely available run-time libraries, including sophisticated graphical user interface components, internet communications, 2D- and 3D-graphics, and XML support.
  
-Within a XL (or RGGfile, it is possible to write both XL code and Java code +Additionally, implements the XL-language specification (https://manual.grogra.de/XL/index.html) to enable rule based graph manipulationThis leads to a programming language based on two paradigms, the object orientation of java and the rule based structure of XL. In order to separate these two, XL is using different brackets to define code blocks.  
- +The java blocks are framed by curly brackets ''{...}'' and the XL blocks by square brackets ''[...]''. These blocks can be embedded into each other recursively and share declared variables
-It is highly recommended to learn basic usage of Java to efficiently code in RGG+
  
 ====== ====== ====== ======
01_user_documentation/07_rgg_xl/02_xl/02_java.1748444544.txt.gz · Last modified: 2025/05/28 17:02 by sophiewachtel