
language() // introduction to the baltensperger programming language
The baltensperger programming language is built as a simple language which is close to Processing, which itself is close to Java.
In the baltensperger programming environment you can use baltensperger syntax as well as Processing and Java in the same code.
Each code should have at minimum two functions.
The first function calls "wo_am_afang_gmacht_wird()". It gets called once when the program has started to define initial properties such as the screen size...
The second function is called "wo_immerwider_gmacht_wird()". This is the main loop and is called directly after the "wo_am_afang_gmacht_wird()" function.
Each functions must be initialized with the word "Programmteil" or if they should give back some content, with the return datatyp. For example "Ganzizahl", "Buechstabe", "Satz", ...The initialization is followed by the function`s name(), followed by "bitte" to start it. To close the function use "danke".
For Example:
. Programmteil wo_am_afang_gmacht_wird() bitte
. . . Feischtergroessi(500,400);
. .. .Gschwindigkeit(20);
. .. . ...
. danke
For more examples have a look to the link "examples()" or to the "language reference()". There is also a detailed introduction to the syntax at the Processing website.
language() // some code examples
This is just a short example which shows the main function of the language.
Programmteil wo_am_afang_gmacht_wird() bitte
___Feischtergroessi(200, 200);
___weichzeichne();
___liniesterchi(20.0);
___liniefarb(0, 100);
danke
Programmteil wo_immerwider_gmacht_wird() bitte
___Hintergrund(226);
___Chreis(MuusX, MuusY, 20, 20);
danke
More examples will follow soon.
For more informations have a look to the "language reference".
language() // how to modify baltensperger to your own dialect
The baltensperger programming environment is designed to be modified also by persons who are not familiar with Java, C++ or other programming languages.
This guidance explains, how to modify baltensperger to your own custom language.
First open the file called "language.txt" from the folder:"...baltensperger 01/lib/language.txt" with a standard text editor such as TextEdit, Word, ...)
This file is the main dictionary of "baltensperger". You can recognize comment by a "/" at the beginning of a line. All other lines get ready by the program as dictionary instructions.
Use the following layout to edit the dictionary.
Farb => color
Farb is the baltensperger function followed by "space, =, >, space", followed by the equivalent Processing or Java name.
You can rename all signs or function to your own name but watch out not to distroy other names. For example:
If you name "int" (integer in Java) "jeah", the programm will also translate "hint" and "point", which are Java Names to "hjeah" and "pojeah"
>>
language() // how to modify baltensperger to your own dialect
To evoid this you simply have to specify the name that has to be replaced.
Example:
bla. => int.
/"hint." (with a dot at the end) does not exist in Java but int. does.
The dot at the end of int specifies the search. You also can set a space letter or each other character. Therefor it makes sense to find out which names could inclued your name.
If you save the "language.txt" file the baltensperger programing environment will understand your language after the next program start.
<<
context()
language()
introduction
examples
language modification
download()
contact()