https://github.com/c0stra/terminator
Terminator Language
https://github.com/c0stra/terminator
Last synced: 3 months ago
JSON representation
Terminator Language
- Host: GitHub
- URL: https://github.com/c0stra/terminator
- Owner: c0stra
- License: bsd-2-clause
- Created: 2020-06-02T17:42:16.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-10-03T12:55:43.000Z (almost 3 years ago)
- Last Synced: 2025-12-02T01:59:19.932Z (8 months ago)
- Language: Java
- Size: 17.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Terminator Language (featured by [RPG](https://github.com/c0stra/rpg))
[](https://search.maven.org/#search%7Cga%7C1%7Cterminator)
[](https://travis-ci.org/c0stra/terminator)
```java
When (Arnold) steels (aBike),
then fun begins.
```
Terminator language is yet another JVM language with syntax, that allows to write sentences like in real english.
The purpose is to be able to write human readable and descriptive code, with main usage in areas, where this is
important. E.g. automated testing.
It's small features.
Operator `.` for member selection is totally avoided. Member access is simply like this `object member`
Instead `.` is used to terminate a statement (sentence). Hence this operator is called _Terminator_. Object may respond
to this operator by implementing `Terminator` interface, which makes the language very powerful. Therefore it gave the
name to the language.
There is another operator `,` called _Separator_. It's allowed only at top level expression. It doesn't terminate
an expression, but objects may also respond to it by implementing interface `Separator`.
Method call still uses the same feature as member select. So your code may look like this (see cucumber syntax
implemented)
```java
When (user) enters username ("admin") and password ("p@ssw0rD"),
then (application) displays ("Welcome admin").
```