Abstract:
In this article describes a Domain Specific Language for astrology. It is named Astro and uses .astro extension. The Astro domain specific language has the purpose to gather astrology data from an API offered by astrologyapi.com and show it to the user. The grammar of this domain specific language is simple so that it cannot confuse the user with many different functions and tricks. It is focused on defining person info that is handled through variables and showing info for those persons by calling specific functions. These specific functions are actually types of requests to the API (ex: wster_horoscope, lunar_metrics, general_sign_reports). The API offers almost any information
related to astrology and it is categorized in Calculations, Life Reports, and Compatibility Reports. The ANTLR was used in order to define the grammar and to create the lexer and parser. Antlr is also a domain specific language with the purpose to create other DSLs. In order to invoke ANTLR and to generate lexer and parser as target language is
used Java. Java will be the engine of the DSL. It uses an SDK offered by astrologyAPI.com.