Language reference - xkp/Doc GitHub Wiki
Introduction
xs (pronounced excess) is a general purpose language very similar in syntax to commonly used languages such as javascript and c#. The goal of the language is not to innovate sintax-wise, but to make life simpler for developers. In the quest for simplicity xs allows the developer to describe the application before it is implemented. This process happens in a traditional data language (XML, JSON, etc).
xs is object oriented, hybrid-typed and is the first language (to my knowlegde) that supports DSLs sintactically. The output of the language is not object code, the xs compiler will spit source code for other platforms. This provides a handful of advantages:
- The language is stable, at least as stable as its destination platform.
- You may switch platforms at any time without touching your code.
- I had to write a whole new language (used by the compiler) to achieve this.
Note: This is not a complete reference (not gonna do grammar here), unless noticed everything works as it does on any language around. Now onto the gritty...