User defined syntax

Kutululu supports user defined syntax. Source code is parsed with universal parser based on pattern matching.

Syntactical patterns are defined as module resources, so it is possible to use sets of syntax patterns by using specified module. Resource identifier is used as syntax name, so we may define different syntaxes.

There is no built-in syntax. Basic syntax is defined in system module, but it can be easily changed, extended or used to create other syntaxes. Even constructs like parenthesis, sequence or conditional execution (if) are defined using custom syntax.

Parsing code using pattern matching may be slow in some situations and is certainly always slower than using special parser. However, computers today are fast and will become faster.