Opt2Code is a programming language for developing Domain Specific Languages (DSLs). This language is usually used in conjunction with a high level programming language like Kotlin or JavaScript which used for handling implementation details behind DSL. The format of the language allows us to decouple the development of DSL itself and its implementation. In fact, Opt2Code code can be easily embedded in a high level programming code since its format supports renaming in any simple text editor so that code cohesion is not to be broken. The use of this language implies the creation of DSL or use/development of ready-made DSLs by its design. It also imposes a restriction on the design of the code implementing the required features, making it more functional in its nature.

For example, the Opt2Code online tools, published on this website, allow us to generate any HTML code (with CSS) using human readable notations, without HTML tag repetition, which can be easily defined by user and the code behind notations also can be developed independently. However, we are not limited to HTML code generation, it can be Markdown language or something else. For that, you can use converters based on user-defined rules where you can define implementation details of rules using JavaScript. You can also see some converters based on embedded rules there. For these converters, implementation rules are predefined in the system (using Kotlin language). So, they were provided only for educational purposes to run some examples of Opt2Code code.

As for the other interesting features of Opt2Code:
Unlike Markdown, most punctuation characters have no special meaning for Opt2Code and can be used as short abbreviations for user-defined properties and operators in Opt2Code code.
Opt2Code code is also convenient to use with online translators for translating text with formatting since the standard reversible transformation (into digital form of the Opt2Code code) is specially designed for this purpose.
We provide standard tools for working with Opt2Code in the Converter section of this website.

© 2022 opt2code.com. All Rights Reserved.