Short overview of the topic of my bachelor-thesis

In my very first post, I want to write about the topic of my bachelor thesis. This is just a small overview but I will explain each topic in a separate post.

In general, I want to implement a text editor for the domain-specific language (DSL) openVALIDATION [1]. This is a DSL that can represent validation-rules and is very close to natural-language. After the definition of a rule, code can be generated in different programming languages. Currently, code can be generated in the languages C#, Java, JavaScript and Node.js. The language is quite new and will be published on GitHub soon [2]

The editor for the language should be web-based and Open-Source for strong extensibility and many possibilities to integrate it. Therefore we use the Language Server Protocol [3] which tries to be an API between multiple language-extensions and text editors. It’s currently implemented for about 99 languages [4] and 23 text editors [5].

The main part of my thesis is the implementation of language-features for openVALIDATION. After my work, I will publish this also on my GitHub profile, that the extension can be integrated into several editors.

The main features of this extension will be linting, autocompletion and syntax-highlighting. Linting is the analysis of code while writing it. Autocompletion means the providing of symbols. We want to provide context-sensitive autocompletion, where you only show symbols, that are valid in a given context. Last but not least, syntax-highlighting is the consistent highlighting of words that are in the same group. Groups are e.g. keywords or methods.

Autocompletion and syntax-highlighting are a bit of a problem because the language is very close to natural language. For the autocompletion function, the abstract-syntax-tree (AST) needs to be used and modified to simplify the usage.

In the future post I want to answer the following questions:

  1. What is the Language Server Protocol?
  2. Which web-based Open-Source editor is the most used and accepted one?
  3. How does syntax-highlighting work for a natural language?
  4. How can context-sensitive code completion work for a natural language?


  1. [1] openvalidation, GitBook: openVALIDATION.
  2. [2] openvalidation, GitHub: openVALIDATION.
  3. [3] Microsoft, Language Server Protocol.
  4. [4] Microsoft, Language Server Protocol - Servers.
  5. [5] Microsoft, Language Server Protocol - Tools.