]> gitweb.factorcode.org Git - factor.git/blobdiff - misc/syntax-test.factor
mason: show git SHA1 and timestamp of last completed build
[factor.git] / misc / syntax-test.factor
index 85d6f734dc081bc5a03b4f5c77d2eb70d7faa5c0..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,12 +213,17 @@ PRIVATE>
     "\"hello\""
     "\a\b\e\f\n\r\t\s\v\s\0\\\""
     "\x01\xaF\uffffff"
+    "\0123\148"
 
     URL" http://google.com"
     R" asdf"
 
     """>json"""
 
+    "{ 1 2 3 }"
+
+    [[{ 1 2 3 }]]
+
 ! Triple quote strings (old Factor)
 
     """hello, world"""