]> gitweb.factorcode.org Git - factor.git/blobdiff - misc/syntax-test.factor
Reformat
[factor.git] / misc / syntax-test.factor
index 23207bde7c2819e373ea54c66f0c775fc72a878b..27f2f4e13bff36230f15f7860be743fa0a407fce 100644 (file)
@@ -154,10 +154,14 @@ PRIVATE>
     LIBRARY: name
     TYPEDEF: old new
     ENUM: type words... ;
-    ENUM: type < base-type words...
+    ENUM: type < base-type words... ;
     FUNCTION: return name ( parameters ) ;
     FUNCTION-ALIAS: factor-name return name ( parameters ) ;
 
+{ ALIEN: 1234 } [ ALIEN: 1234 [ { alien } declare void* <ref> ] compile-call void* deref ] unit-test
+{ ALIEN: 1234 } [ ALIEN: 1234 [ { c-ptr } declare void* <ref> ] compile-call void* deref ] unit-test
+{ f } [ f [ { POSTPONE: f } declare void* <ref> ] compile-call void* deref ] unit-test
+
 ! Symbols and literals
 
     \ foo
@@ -195,6 +199,7 @@ PRIVATE>
     5 f <array>
     (clone)
 
+    [| a b | ]
     [let [let { } ] ]
 
 ! Strings
@@ -208,6 +213,7 @@ PRIVATE>
     "\"hello\""
     "\a\b\e\f\n\r\t\s\v\s\0\\\""
     "\x01\xaF\uffffff"
+    "\0123\148"
 
     URL" http://google.com"
     R" asdf"