GeometryDSL is a domain-specific language (DSL) designed for geometric calculations and transformations. This description provides an overview of the language syntax, usage instructions, and how to run programs using GeometryDSL.
An example of GeometryDSL code can be found in test.geo
.
To run your GeometryDSL program, follow these steps:
- Compile your GeometryDSL program into a runnable jar file, let's say
CompiledJar.jar
. - Prepare your input file containing GeometryDSL code, for example,
inputfilename.geo
.
Run the compiled jar file with your input file:
java -jar CompiledJar.jar inputfilename
Replace CompiledJar.jar
with the actual name of your compiled jar file, and inputfilename
with your GeometryDSL code file.
GeometryDSL supports syntax for loops (while, for loops), conditional statements (if-else statements). It also supports defining geometric shapes such as circles, rectangles, and more. You can also use functions, such as print, area, perimeter, etc.
This project is licensed under the Apache-2.0 license - see the LICENSE file for details.