Oleg-N-Cher / OfrontPlus

Oberon family of languages to C translator for ARM, x64 and x86 architectures
Other
55 stars 11 forks source link

Support for the two-byte character type CHAR/LONGCHAR #107

Closed Oleg-N-Cher closed 2 years ago

Oleg-N-Cher commented 3 years ago

In -C and -3 modes, we must have support for a two-byte character type.

In Component Pascal this type is named CHAR, and in Oberon-3 we will call it LONGCHAR.

Oleg-N-Cher commented 2 years ago
MODULE Test;

VAR ch: CHAR;

PROCEDURE A;
BEGIN
  IF ('a' <= ch) & (ch <= 'z') THEN END;
END A;

END Test.
Oleg-N-Cher commented 2 years ago
MODULE A;
VAR s: ARRAY 10 OF CHAR;
BEGIN s := ''; 
  IF s = '' THEN END 
END A.