Data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 7387c8f97b
commit cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions

View file

@ -0,0 +1,3 @@
---
from: http://rosettacode.org/wiki/Unicode_variable_names
note: Unicode

View file

@ -0,0 +1,12 @@
;Task:
# Describe, and give a pointer to documentation on your languages use of characters ''beyond'' those of the ASCII character set in the naming of variables.
# Show how to:
:* Set a variable with a name including the 'Δ', (delta ''character''), to 1
:* Increment it
:* Print its value.
;Related task:
* [[Case-sensitivity of identifiers]]
<br><br>

View file

@ -0,0 +1,3 @@
V Δx = 1
Δx++
print(Δx)

View file

@ -0,0 +1,19 @@
1 var, Δ
Δ @ n:1+ Δ !
Δ @ . cr
\ unicode silliness
: 念 ' G:@ w:exec ;
: 店 ' G:! w:exec ;
: ਵਾਧਾ ' n:1+ w:exec ;
: الوداع ' G:bye w:exec ;
: キャリッジリターン ' G:cr w:exec ;
: प्रिंट ' G:. w:exec ;
Δ 念 ਵਾਧਾ Δ 店
Δ 念 प्रिंट キャリッジリターン
الوداع

View file

@ -0,0 +1,2 @@
(let ((Δ 1))
(1+ Δ))

View file

@ -0,0 +1,8 @@
with Ada.Text_IO;
procedure main is
Δ : Integer;
begin
Δ := 41;
Δ := Δ + 1;
Ada.Text_IO.Put_Line (Δ'Img);
end main;

View file

@ -0,0 +1,3 @@
set |Δ| to 1
set |Δ| to |Δ| + 1
return |Δ|

View file

@ -0,0 +1,4 @@
"Δ": 1
"Δ": inc var "Δ"
print ["Delta =>" var "Δ"]

View file

@ -0,0 +1,3 @@
Δ = 1
Δ++
MsgBox, % Δ

View file

@ -0,0 +1,9 @@
PRAGMA COMPILER clang
DECLARE Δ TYPE int
Δ = 1
INCR Δ
PRINT Δ

View file

@ -0,0 +1,4 @@
( (Δ=1)
& 1+!Δ:?Δ
& out$("Δ:" !Δ)
);

View file

@ -0,0 +1,9 @@
class Program
{
static void Main()
{
var Δ = 1;
Δ++;
System.Console.WriteLine(Δ);
}
}

View file

@ -0,0 +1,9 @@
// Works for clang and GCC 10+
#include<stdio.h>
int main() {
int Δ = 1; // if unsupported, use \u0394
Δ++;
printf("%d",Δ);
return 0;
}

View file

@ -0,0 +1,2 @@
(let [Δ 1]
(inc Δ))

View file

@ -0,0 +1,2 @@
(let ((Δ 1))
(incf Δ))

View file

@ -0,0 +1,3 @@
Δ = 1
Δ += 1
puts Δ

View file

@ -0,0 +1,7 @@
import std.stdio;
void main() {
auto Δ = 1;
Δ++;
writeln(Δ);
}

View file

@ -0,0 +1,5 @@
var Δ : Integer;
Δ := 1;
Inc(Δ);
PrintLn(Δ);

View file

@ -0,0 +1,17 @@
(* Compiled with Delphi XE *)
program UnicodeVariableName;
{$APPTYPE CONSOLE}
uses
SysUtils;
var
Δ: Integer;
begin
Δ:= 1;
Inc(Δ);
Writeln(Δ);
Readln;
end.

View file

@ -0,0 +1,4 @@
(define ∆-🍒 1) → ∆-🍒
(set! ∆-🍒 (1+ ∆-🍒)) → 2
(printf "🔦 Look at ∆-🍒 : %d" ∆-🍒)
🔦 Look at ∆-🍒 : 2

View file

@ -0,0 +1,7 @@
public program()
{
var Δ := 1;
Δ := Δ + 1;
console.writeLine:Δ
}

View file

@ -0,0 +1,3 @@
(setq Δ 1)
(setq Δ (1+ Δ))
(message "Δ is %d" Δ)

View file

@ -0,0 +1,3 @@
let mutable Δ = 1
Δ <- Δ + 1
printfn "%d" Δ

View file

@ -0,0 +1,6 @@
USE: locals
[let
1 :> Δ!
Δ 1 + Δ!
Δ .
]

View file

@ -0,0 +1,4 @@
variable
1 !
1 +!
@ .

View file

@ -0,0 +1,6 @@
'FB 1.05.0 Win64
Var delta = 1
delta += 1
Print delta '' 2
Sleep

View file

@ -0,0 +1,3 @@
Δ = 1
Δ = Δ + 1
println[Δ]

View file

@ -0,0 +1,9 @@
package main
import "fmt"
func main() {
Δ := 1
Δ++
fmt.Println(Δ)
}

View file

@ -0,0 +1,3 @@
main = print ψ
where δΔ = 1
ψ = δΔ + 1

View file

@ -0,0 +1,5 @@
int Δ = 1;
double π = 3.141592;
String 你好 = "hello";
Δ++;
System.out.println(Δ);

View file

@ -0,0 +1,7 @@
var = "something";
var ĦĔĽĻŎ = "hello";
var 〱〱〱〱 = "too less";
var ि = "javascript"; // ok that's JavaScript in hindi
var KingGeorgeⅦ = "Roman numerals.";
console.log([, ĦĔĽĻŎ, 〱〱〱〱, ि, KingGeorgeⅦ])

View file

@ -0,0 +1 @@
{ "Δ": 1 } | .["Δ"]

View file

@ -0,0 +1 @@
.["Δ"]

View file

@ -0,0 +1 @@
."Δ"

View file

@ -0,0 +1,3 @@
{ "Δ": 1 } # initialization
| .["Δ"] += 1 # increment by 1
| .["Δ"] # emit the incremented value

View file

@ -0,0 +1,2 @@
julia> Δ = 1 ; Δ += 1 ; Δ
2

View file

@ -0,0 +1,2 @@
julia> Δ̂₂ = Δ^2
4

View file

@ -0,0 +1,5 @@
fun main(args: Array<String>) {
var Δ = 1
Δ++
print(Δ)
}

View file

@ -0,0 +1,3 @@
I HAS A SRS "Δ" ITZ 1
SRS "Δ" R SUM OF SRS ":(394)" AN 1
VISIBLE SRS ":[GREEK CAPITAL LETTER DELTA]"

View file

@ -0,0 +1,3 @@
var Δ = 1
Δ += 1
print(Δ.to_s())

View file

@ -0,0 +1,4 @@
Δ = 1
Δ = Δ + 1
put Δ
-- 2

View file

@ -0,0 +1,4 @@
put 1 into Δ
add 1 to Δ
put Δ
-- result is 2

View file

@ -0,0 +1,3 @@
= 1
= + 1
print()

View file

@ -0,0 +1,16 @@
Δ=1
Δ++
Print Δ
ᾩ=3
Print ᾩ**2=ᾩ^2, ᾩ^2-1=8
Τύπωσε ᾩ**2=ᾩ^2, ᾩ^2-1=8 ' this is Print statement too
Print ᾡ=3
जावास्क्रिप्ट=100
जावास्क्रिप्ट++
Print "जावास्क्रिप्ट=";जावास्क्रिप्ट
ĦĔĽĻŎ$="hello"
Print ĦĔĽĻŎ$+ħĕľļŏ$="hellohello"
〱〱〱〱$="too less"
Print Left$(〱〱〱〱$, 3)="too"
c͓͈̃͂̋̈̆̽h̥̪͕ͣ͛̊aͨͣ̍͞ơ̱͔̖͖̑̽ș̻̥ͬ̃̈ͩ =100 : Print "c͓͈̃͂̋̈̆̽h̥̪͕ͣ͛̊aͨͣ̍͞ơ̱͔̖͖̑̽ș̻̥ͬ̃̈ͩ ="; c͓͈̃͂̋̈̆̽h̥̪͕ͣ͛̊aͨͣ̍͞ơ̱͔̖͖̑̽ș̻̥ͬ̃̈ͩ

View file

@ -0,0 +1,3 @@
Δ = 1;
Δ++;
Print[Δ]

View file

@ -0,0 +1,11 @@
using System.Console;
module UnicodeVar
{
Main() : void
{
mutable Δ = 1;
Δ++;
WriteLine($"Δ = $Δ");
}
}

View file

@ -0,0 +1,33 @@
/* NetRexx */
options replace format comments java crossref symbols nobinary
upperΔ = 1
Δupper = upperΔ
lowerδ = 2
δlower = lowerδ
say upperΔ '+' Δupper '= \-'
upperΔ = upperΔ + Δupper
say upperΔ
say lowerδ '+' δlower '= \-'
lowerδ = lowerδ + δlower
say lowerδ
say
-- Unicode works with the NetRexx built-in functions
Υππερ = '\u0391'.sequence('\u03a1') || '\u03a3'.sequence('\u03a9') -- ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ
Λοωερ = '\u03b1'.sequence('\u03c1') || '\u03c3'.sequence('\u03c9') -- αβγδεζηθικλμνξοπρστυφχψω
say Υππερ'.Lower =' Υππερ.lower()
say Λοωερ'.Upper =' Λοωερ.upper()
say
-- Note: Even with unicode characters NetRexx variables are case-insensitive
numeric digits 12
δ = 20.0
π = Math.PI
θ = Π * Δ
σ = Θ ** 2 / (Π * 4) -- == Π * (Δ / 2) ** 2
say 'Π =' π', diameter =' δ', circumference =' Θ', area =' Σ
return

View file

@ -0,0 +1,3 @@
var Δ = 1
inc Δ
echo Δ

View file

@ -0,0 +1,9 @@
class Test {
function : Main(args : String[]) ~ Nil {
Δ := 1;
π := 3.141592;
你好 := "hello";
Δ += 1;
Δ->PrintLine();
}
}

View file

@ -0,0 +1,3 @@
(define Δ 1)
(define Δ (+ Δ 1))
(print Δ)

View file

@ -0,0 +1,4 @@
<?php
= 1;
++;
echo ;

View file

@ -0,0 +1,3 @@
<@ LETVARLIT>Δ|1</@>
<@ ACTICRVAR>Δ</@>
<@ SAYVAR>Δ</@>

View file

@ -0,0 +1,3 @@
<@ LETVARLIT>三角洲|1</@>
<@ ACTICRVAR>三角洲</@>
<@ SAYVAR>三角洲</@>

View file

@ -0,0 +1,5 @@
use utf8;
my $Δ = 1;
$Δ++;
print $Δ, "\n";

View file

@ -0,0 +1,12 @@
use utf8;
BEGIN {
my $val;
sub Δ () : lvalue {
$val;
}
}
Δ = 1;
Δ++;
print Δ, "\n";

View file

@ -0,0 +1,10 @@
use utf8;
use v5.10;
sub Δ () : lvalue {
state $val;
}
Δ = 1;
Δ++;
say Δ;

View file

@ -0,0 +1,6 @@
(phixonline)-->
<span style="color: #008080;">with</span> <span style="color: #008080;">javascript_semantics</span>
<span style="color: #004080;">integer</span> <span style="color: #000000;">Δ</span> <span style="color: #0000FF;">=</span> <span style="color: #000000;">1</span>
<span style="color: #000000;">Δ</span> <span style="color: #0000FF;">+=</span> <span style="color: #000000;">1</span>
<span style="color: #0000FF;">?</span><span style="color: #000000;">Δ</span>
<!--

View file

@ -0,0 +1,8 @@
: (setq Δ 1)
-> 1
: Δ
-> 1
: (inc 'Δ)
-> 2
: Δ
-> 2

View file

@ -0,0 +1,7 @@
#charset utf8
void main()
{
int Δ = 1;
Δ++;
write( Δ +"\n");
}

View file

@ -0,0 +1,3 @@
$Δ = 2
$π = 3.14
$π*$Δ

View file

@ -0,0 +1,11 @@
% Unicode in predicate names:
. % be: means, approximately, "True".
不是 :- \+ . % not be: means, approximately, "False". Defined as not 是.
% Unicode in variable names:
test(Garçon, Δ) :-
Garçon = boy,
Δ = delta.
% Call test2(1, Result) to have 2 assigned to Result.
test2(Δ, R) :- R is Δ + 1.

View file

@ -0,0 +1,12 @@
?- .
true.
?- 不是.
false.
?- test(X,Y).
X = boy,
Y = delta.
?- test2(1,Result).
Result = 2.

View file

@ -0,0 +1,5 @@
>>> Δx = 1
>>> Δx += 1
>>> print(Δx)
2
>>>

View file

@ -0,0 +1,3 @@
f <- function(`∆`=1) `∆`+1
f(1)

View file

@ -0,0 +1,5 @@
/*REXX program (using the R4 REXX interpreter) which uses a Greek delta char).*/
'chcp' 1253 "> NUL" /*ensure we're using correct code page.*/
Δ=1 /*define delta (variable name Δ) to 1*/
Δ=Δ+1 /*bump the delta REXX variable by unity*/
say 'Δ=' Δ /*stick a fork in it, we're all done. */

View file

@ -0,0 +1,12 @@
#lang racket
;; Racket can use Unicode in identifier names
(define sqrt)
( 256) ; -> 16
;; and in fact the standard language makes use of some of these
(λ(x) x) ; -> an identity function
;; The required binding:
(define Δ 1)
(set! Δ (add1 Δ))
(printf "Δ = ~s\n" Δ) ; prints "Δ = 2"

View file

@ -0,0 +1,3 @@
my = 1;
++;
say ;

View file

@ -0,0 +1,9 @@
my @ᐁ = (0, 45, 60, 90);
sub π { pi };
sub postfix:<°>($degrees) { $degrees * π / 180 };
for @ᐁ -> $ಠ_ಠ { say sin $ಠ_ಠ° };
sub c͓͈̃͂̋̈̆̽h̥̪͕ͣ͛̊aͨͣ̍͞ơ̱͔̖͖̑̽ș̻̥ͬ̃̈ͩ { 'HE COMES' }

View file

@ -0,0 +1,5 @@
'Δ var
#1 !Δ
@Δ n:put
&Δ v:inc
@Δ n:put

View file

@ -0,0 +1,4 @@
# Project : Unicode variable names
Δ = "Ring Programming Language"
see Δ + nl

View file

@ -0,0 +1,3 @@
Δ = 1
Δ += 1
puts Δ # => 2

View file

@ -0,0 +1,8 @@
#![feature(non_ascii_idents)]
#![allow(non_snake_case)]
fn main() {
let mut Δ: i32 = 1;
Δ += 1;
println!("{}", Δ);
}

View file

@ -0,0 +1,11 @@
define ∆increment(∆ref) {
@∆ref++;
}
variable foo∆bar = 1;
foo∆bar++;
variable ∆bar = 1;
∆bar++;
∆increment(&∆bar);
% foo∆bar should be 2 and ∆bar should be 3.
print(foo∆bar);
print(∆bar);

View file

@ -0,0 +1,5 @@
var Δ = 1
val π = 3.141592
val 你好 = "hello"
Δ += 1
println(Δ)

View file

@ -0,0 +1,3 @@
put 1 into Δ
add 1 to Δ
put Δ

View file

@ -0,0 +1,3 @@
var Δ = 1;
Δ += 1;
say Δ;

View file

@ -0,0 +1,13 @@
sca Δ=10
sca Δ=Δ+1
di Δ
local Δ=20
local ++Δ
di `Δ'
mata
Δ=30
Δ++
Δ
end

View file

@ -0,0 +1,5 @@
var Δ = 1
let π = 3.141592
let = "hello"
Δ++
println(Δ)

View file

@ -0,0 +1,4 @@
set Δx 1
incr Δx
puts [set Δx]
puts ${Δx}

View file

@ -0,0 +1,3 @@
Δ=1
Δ=`expr $Δ + 1`
echo

View file

@ -0,0 +1,6 @@
Sub Main()
Dim Δ As Integer
Δ=1
Δ=Δ+1
Debug.Print Δ
End Sub

View file

@ -0,0 +1,4 @@
var a = 3
var b = 2
var delta = a - b // ok
var Δ = delta // not ok

View file

@ -0,0 +1,9 @@
delta:="\U0394;"; // UTF-8 delta
klass:= // embryo(names, numFcns, numClasses, numParents, ...)
self.embryo(L("","",delta),0,0,0).cook();
klass.setVar(0,Ref(1)); // indirect set since delta not valid var name
klass.vars.println();
dv:=klass.setVar(0); // which actually gets the var, go figure
dv.inc(); // ie (*ptr)++
dv.value.println();