
reference.language.dialects.html Maven / Gradle / Ivy
Dialects
Prompto dialects
Information technologists can have very different backgrounds.
Some are very technical, with strong skills in OOP languages such as Java or C#.
Some have grown their programming skills from scripting languages such as Python.
Others have little or no coding experience, and work more on functional specifications, project
management or testing.
All these information technologists participate actively in the development.
At Prompto, we believe they are all developers, and should have equal access to code.
Syntax is a detail
To facilitate the conversation between all breeds of developers, Prompto comes with not one "language" but
three.
Prompto calls these dialects, as they are not independant languages, but rather 3 syntactic variations of the same language concepts.
Prompto dialects are a collaborative tool which helps technologists work together.
They eliminate the barrier of having to learn a formal grammar only to read code.
They make it very easy for any developer to adopt the Prompto platform, whatever his/her coding
background.
The Objy dialect aka "O"
Objy uses a syntax that tries to follow as much as possible the syntax of OOP languages such as C++, Java
or C#.
Since Prompto introduces new concepts, the Objy syntax sometimes differs from these languages.
But structuring elements are very similar: semi-colons to end statements, curly braces to group multiple
statements, etc...
Here is an example:
method main ( ) {
print("15 + 3.5");
print("= 28.5");
}
The Monty dialect aka "M"
Monty uses a syntax that tries to follow as much as possible the syntax of the Python 3 language.
Since Prompto introduces new concepts, the Monty syntax sometimes differs from the Python 3 syntax.
But structuring elements are very similar: one statement per line, colon and indentation to group multiple
statements, etc...
Here is an example:
def main(options:Text<:>):
print("15 + 3.5")
print("= 28.5")
The Engly dialect aka "E"
Engly is a syntax that mimics English as much as possible.
The intent is that developers with little or no coding background should be able to read code without having to learn the formalism of other dialects.
The structure is very similar to Monty. Additionaly, it removes parenthesis, and many keywords are replaced by plain English words.
Here is an example:
define main as method doing:
print "15 + 3.5"
print "= 28.5"
Seamless translation between dialects
Prompto tools provide seamless translation from one dialect to another.
Practically, you simply need to select the dialect of your choice.
This makes it very easy for any developer to view any code in his/her preferred dialect.
It also makes it very easy for a developer to switch dialect in the future, since no rewriting is needed.
You can experience this translation by exploring the examples in this documentation.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy