Abstract:
In this paper it is analyzed what a domain-specific language means, its main advantages and how to develop a DSL for evaluation of mathematical expressions, how to define its grammar and what rules are applied. There are pointed out the most important parts used to define a domain-specific language. Besides it is discussed on several examples how the grammar was parsed to ANTLR, explained what is ANTLR and showed the parse tree.