PPL is not a compatible with the C or C++ language. However it uses a syntax that is close to the C language. So, technicaly yes, you can bring your project to PPL but you will have to modify your code a bit. Ex: variable names in PPL have to have an $ or % after their name, proc/func are the statements used for void, etc... Btw PPL is not compatible with C++ code.
And thanks all for your interest in PPL.
Here is a little code example of a PPL code to show you the syntax used.
- Code: Select all
1 2 3 4 5 6 7 8 9 10 11 12
| s$ = 10; ShowMessage(s$);
s$ = "STRING"; ShowMessage(s$);
i$ = 30; s$ = i$; ShowMessage(s$);
i$ = 10 + 20 / 2; ShowMessage(i$);
|
| 12 lines; 0 keywds; 5 nums; 24 ops; 1 strs; 0 coms Syntactic Coloring v0.4 - Dan East |
And here is another to show string manipulation:
- Code: Select all
1 2 3 4 5 6 7 8 9 10 11 12
| s$ = "This is a string"; // Set string s$. ShowMessage(s$);
delete(s$, 6, 2); // Delete from character 6 for a length of 2. insert("was", s$, 6); // Insert "was" in s$ at character position 6. ShowMessage(s$);
ShowMessage(s$[6]); // Show character value at position 6.
ShowMessage(mid(s$, 6, 3)); // Show from character 6 for a length of 3.
ShowMessage("This is "+"a test!"); // Show how to concatenate strings together.
|
| 12 lines; 1 keywds; 6 nums; 34 ops; 4 strs; 6 coms Syntactic Coloring v0.4 - Dan East |
Regards,
Kornalius