Skip to content

mirrerror/GeometryDSL

Repository files navigation

GeometryDSL

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.

Example

An example of GeometryDSL code can be found in test.geo.

Usage

To run your GeometryDSL program, follow these steps:

  1. Compile your GeometryDSL program into a runnable jar file, let's say CompiledJar.jar.
  2. 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.

Syntax

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.

License

This project is licensed under the Apache-2.0 license - see the LICENSE file for details.

About

Geomerty DSL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published