utf8 in identifiers

made like in pcc
    (pcc.ludd.ltu.se/ftp/pub/pcc-docs/pcc-utf8-ver3.pdf)
    We treat all chars with high bit set as alphabetic.
    This allow code like

    #include <stdio.h>
    int Lefèvre=2;
    int main() {
        printf("Lefèvre=%d\n",Lefèvre);
        return 0;
    }
This commit is contained in:
seyko
2016-04-05 13:05:09 +03:00
parent c9473a7529
commit 936819a1b9
3 changed files with 24 additions and 1 deletions

View File

@ -0,0 +1,9 @@
#include <stdio.h>
double привет=0.1;
int Lefèvre=2;
int main(){
printf("привет=%g\n",привет);
printf("Lefèvre=%d\n",Lefèvre);
return 0;
}
// pcc & tcc only

View File

@ -0,0 +1,2 @@
привет=0.1
Lefèvre=2