Description
Hi All,
I am looking into compiling the ORC-Apps with an alternative tool chain and run into a number of issues related to use of non standard functions and/or syntax (or maybe some has become standard and I am just out of sync).
i) The use of the built-in function println is causing incompatibilities. I seem to remember a standardization effort to address printing, so maybe you can show me how it shall look. I am sure at least that it is not part of the language, as it seems to be in ORCC.
I propose that you move println() to the system project.
ii) Array declarations using C-style notation is commonly used. Is that standardized yet? If not, I would propose a slightly modified syntax placing the brackets with the type, and not with variable, i.e. like
int[a][3] X;
The syntax for variable declarations in CAL is " ", and as far as I am concerned the array dimensions are part of the type.
iii) The keyword 'elsif' is introduced to address the ugly problem with nested 'if'-loops. I think this is something that needs fixing, but maybe not this way.What is the status with this in the RVC standard. If not done yet, I propose we bring this up for discussion.
[edit] Next 2 points have been fixed in 73e953b
iv) ORCC do not require variables to be declared in the 'var' section of functions, procedures, action etc. and instead allow declarations in the beginning of the body.
v) Semicolon for separation of declarations is allowed in ORCC. I think this is welcome addition, but needs to be added to the standard. The semicolon following the last declaration should be optional. I believe this is connected to #iv)
vi) The type "String" is with capital letters. All other basic types are with lower case and I believe string should be as well. Is this standardized?
Cheers,
Johan