-USING: accessors alien.c-types alien.syntax byte-arrays.hex kernel
-literals logging math ;
+USING: accessors alien.c-types alien.syntax classes.struct
+colors kernel literals logging math ;
IN: strange
! FUEL Syntax Demo
! ! Numbers
{ -55 -0x10 100,00 1,000,000 0x2000,0000 0b01 } drop
+{ -0x100_000 100_00 1_000_000 0x2000_0000 0b0_1 } drop
! ! Containers
V{ 1 2 3 } drop
flags{ 10 20 } drop
-! TODO: Highlight contents too.
-HEX{ ab cd ef } drop
-
! ! Alien functions
-FUNCTION: int futimes ( int id, timeval[2] times )
+STRUCT: timeval
+ { sec long }
+ { usec long } ;
+
+FUNCTION: int futimes ( int id,
+ timeval[2] times,
+ int x,
+ int y )
FUNCTION: int booyah ( int x )
FUNCTION-ALIAS: test int bah ( int* ah, int[] eh )
+
+COLOR: #ffffff COLOR: green NAN: 1234 CHAR: m ALIEN: 93
+2drop 2drop drop
+
+PRIMITIVE: one ( a -- b )
+PRIMITIVE: two ( c -- d )
+
+: `word ( -- ) ;
+: word ( -- ) ; ! this isn't strange, just for contrast with the above