Lua Domain Specific Language
What usage of lua qualifies as domain specific language does anyone have a concrete example of using lua for such purpose.
Lua domain specific language. Given a set of token patterns and grammar rules describing a language dsl will generate a parser. I don t know a lot about the dsp world but when you google dsp lua and dsp tcl you get twice as many hits for tcl. If you are using lua as a dsl domain specific language then macros allow for easy customization of syntax. It provided the basic facilities of most procedural programming languages but more complicated or domain specific features were not included.
A domain specific language dsl is a computer language specialized to a particular application domain this is in contrast to a general purpose language gpl which is broadly applicable across domains. Plus it is a perfect choice for developing a domain specific language because of its highly extensible nature. Lua is designed for your specific domain. A macro that takes two parameters.
Dsl is a language generator. This version 1 5 allows a simplified notation suggested by thomas lauer in which simple macros look very much like their c equivalents. Hello the preface to programming in lua states that many people regard lua not as a language but as a kit for building domain specific languages fair enough but what does that mean in practice. Rather it included mechanisms for extending the language allowing programmers to implement such features.
An example could be make the build tool which is a specially designed language for combining commands and files while managing dependencies. Suspending disbelieve for an instant one could imagine the dsl realm. Tcl is a language that was originally designed to be a framework for building dsls providing basic functionality like programmability and i o while the domain specific parts were created fresh for each application and which grew up into a generic scripting language. Domain specific language generator for lua.
What do i call software derived from lua. Lua was originally designed in 1993 as a language for extending software applications to meet the increasing demand for customization at the time. Tcl was designed from the ground up to be an embedded language and has been around for decades. When the time comes to distribute your software two questions may arise.
Dsls or domain specific languages are programming languages that are designed to implement a set of features specific to a particular problem or field. May i still call the language inside my software lua and may i call it something else. Dsl is based on lpeg lua parsing expression grammars so tokens and rules are described in lpeg syntax. There are a wide variety of dsls ranging from widely used languages for common domains such as html for web pages down to languages used by only one or a few pieces of software such as.