The S2 language is an object-oriented and statically-typed language with syntax mostly borrowed from Perl, but with some borrowings from other languages including Java and Python.
This language is domain-specific, which means that it has a reduced feature set compared to general-purpose programming languages you may be familiar with. In particular, the flow control constructs available are restricted to conditional branching (“if” statements) and iteration over finite lists (“foreach” loops).
The language has several features which are designed to make life easier:
"""), which allows quote characters to be included within the string unescaped. This is useful for producing HTML which features lots of quote symbols.
This section serves as a reference guide for the S2 language. Anyone who is familiar with procedural programming should be right at home. If you have not done programming before, you may like to get an idea of the concepts behind programming before you begin.