Sažetak
This paper explores the development of a specialized domain-specific language (DSL) for parametric modeling of three-dimensional objects intended for fabrication via 3D
printing. The goal is to enable users to easily and flexibly define geometric shapes using high-level commands, without the need for complex CAD tools. The DSL allows for the
description of both basic and complex 3D structures through declarative commands that define shapes, transformations, and Boolean operations, with the possibility of parameter-driven control over dimensions and relationships between objects. The implementation uses a parser generator (ANTLR) and a backend that translates DSL
code, enabling rapid generation of STL files ready for 3D printing. The paper describes the language design, syntax, semantics, and the architecture of the system that enables
model validation and visualization. Through practical examples, it is shown how complex geometric objects can be defined using a minimal number of code lines. The proposed
DSL can be applied in education,
Ključne riječi
domain-specific language (DSL); parametric 3D modeling; additive manufacturing; automated model generation;