Add tasks for all the new languages

This commit is contained in:
Tina Müller 2016-12-05 23:44:36 +01:00
parent 9dc3c2bb62
commit bba7bfd280
13208 changed files with 134745 additions and 0 deletions

View file

@ -0,0 +1,3 @@
123
ᴇFACE
π101010

View file

@ -0,0 +1,2 @@
IF 37=$25 THEN PRINT "True"
IF 37=%00100101 THEN PRINT "True"

View file

@ -0,0 +1,4 @@
PRINT(17)
PRINT(&21)
PRINT($11)
PRINT(%1001)

View file

@ -0,0 +1,20 @@
' FB 1.05.0 Win64
' The following all print 64 to the console
' integer literals of unspecified type - actual type is inferred from size or context (8, 16, 32 or 64 bit signed/unsigned)
Print 64 '' Decimal literal
Print &H40 '' Hexadecimal literal
Print &O100 '' Octal Literal
Print &B1000000 '' Binary literal
' integer literals of specific types
' Integer type is 4 bytes on 32 bit and 8 bytes on 64 bit platform
Print 64% '' Decimal signed 4/8 byte integer (Integer)
Print 64L '' Decimal signed 4 byte integer (Long)
Print 64& '' Decimal signed 4 byte integer (Long) - alternative suffix
Print 64LL '' Decimal unsigned 4 byte integer (ULong)
Print 64LL '' Decimal signed 8 byte integer (LongInt)
Print 64ULL '' Decimal unsigned 8 byte integer (ULongInt)
Sleep

View file

@ -0,0 +1,9 @@
include "ConsoleWindow"
def tab 2
print " Decimal 100:", 100
print " Hexadecimal &h64:", &h64, hex$(100)
print " Octal &o144:", &o144, oct$(100)
print " Binary &x1100100:", &x1100100, bin$(100)
<lang futurebasic>

View file

@ -0,0 +1 @@
? 0x1f

View file

@ -0,0 +1,2 @@
42
0x2a

View file

@ -0,0 +1 @@
put 0x1 + 0xff

View file

@ -0,0 +1,20 @@
var x: int
x = 0b1011010111
x = 0b10_1101_0111
x = 0o1327
x = 0o13_27
x = 727
x = 727_000_000
x = 0x2d7
x = 0x2d7_2d7
# Literals of specific size:
var a = -127'i8 # 8 bit Integer
var b = -128'i16
var c = -129'i32
var d = -129'i64
var e = 126'u # Unsigned Integer
var f = 127'u8 # 8 bit uint
var g = 128'u16
var h = 129'u32
var i = 130'u64

View file

@ -0,0 +1 @@
?{65,#41,'A',scanf("55","%d"),0o10,0(7)11}

View file

@ -0,0 +1,4 @@
say 255;
say 0xff;
say 0377;
say 0b1111_1111;

View file

@ -0,0 +1,3 @@
let hex = 0x2F // Hexadecimal
let bin = 0b101111 // Binary
let oct = 0o57 // Octal

View file

@ -0,0 +1,3 @@
decl int i
set i 123
set i -456