• Trees
  • Comments
  • Configuration
  • Identifiers
  • Variables and Functions
  • Compound Statements
  • Libraries
  • Keywords
  • Forest utility
  • Fundamentals

              The code is executed in the order it is written without main function.
              As is customary in many programming language guides the first ppl program is:
              write("Hello World!");
    
              Another example with using Console and String libraries:
              File examples\console\colors.scr:
              
              import String;
              import Console;
              var text = "Hello World!";
              array colors[] = {Green,Red,Yellow,Cyan,Blue,Black,
                     Magenta,Gray,DarkRed,DarkGray,White,Red};
    
              array ArrayChars;
              call String.ToCharArray(text, getname(ArrayChars)); 
    
              for(i,0,length(text))
              {
                  // function with 1 argument does not need "call" 
                  Console.ForegroundColor(colors[i]);
                  Console.Write(ArrayChars[i]);    
              }  
              Console.DefaultColors();
              write();   // to new line
    Result: