]> gitweb.factorcode.org Git - factor.git/commitdiff
factor: change FUNCTION: and similar to not have trailing ;
authorDoug Coleman <doug.coleman@gmail.com>
Sun, 19 Jul 2015 23:24:47 +0000 (16:24 -0700)
committerDoug Coleman <doug.coleman@gmail.com>
Sun, 19 Jul 2015 23:24:47 +0000 (16:24 -0700)
basis/alien/parser/parser-tests.factor
basis/alien/parser/parser.factor
basis/windows/com/syntax/syntax.factor
extra/cuda/syntax/syntax.factor

index 83d71e80fb601ae32dcbfb53b2e3bd9980b0510a..cb1d44be87325163daebfee836c78cfc47012790 100644 (file)
@@ -36,7 +36,7 @@ CONSTANT: eleven 11
     [ "not-word" parse-c-type ] [ error>> no-word-error? ] must-fail-with
 ] with-file-vocabs
 
-FUNCTION: void* alien-parser-function-effect-test ( int *arg1, float arg2 ) ;
+FUNCTION: void* alien-parser-function-effect-test ( int *arg1, float arg2 )
 
 { ( arg1 arg2 -- void* ) } [
     \ alien-parser-function-effect-test "declared-effect" word-prop
@@ -44,7 +44,7 @@ FUNCTION: void* alien-parser-function-effect-test ( int *arg1, float arg2 ) ;
 
 { t } [ \ alien-parser-function-effect-test inline? ] unit-test
 
-FUNCTION-ALIAS: (alien-parser-function-effect-test) void* alien-parser-function-effect-test ( int *arg1, float arg2 ) ;
+FUNCTION-ALIAS: (alien-parser-function-effect-test) void* alien-parser-function-effect-test ( int *arg1, float arg2 )
 
 { ( arg1 arg2 -- void* ) } [
     \ (alien-parser-function-effect-test) "declared-effect" word-prop
@@ -52,7 +52,7 @@ FUNCTION-ALIAS: (alien-parser-function-effect-test) void* alien-parser-function-
 
 { t } [ \ (alien-parser-function-effect-test) inline? ] unit-test
 
-CALLBACK: void* alien-parser-callback-effect-test ( int *arg1 float arg2 ) ;
+CALLBACK: void* alien-parser-callback-effect-test ( int *arg1 float arg2 )
 
 { ( arg1 arg2 -- void* ) } [
     \ alien-parser-callback-effect-test "callback-effect" word-prop
index 73c9c0a9113c9ee9ff9a2d0765a5a65a91c5dfe1..843f0410aa1908b3fc2f98f9c07b7146f0015d27 100755 (executable)
@@ -120,7 +120,7 @@ PRIVATE>
         scan-token "," ?tail drop
         parse-pointers [ types push ] [ names push ] bi*
         scan-token
-    ] until drop ";" expect types names [ >array ] bi@ ;
+    ] until drop types names [ >array ] bi@ ;
 
 : function-quot ( return library function types -- quot )
     '[ _ _ _ _ alien-invoke ] ;
index 79d5c5db8a1e7773214d7bc700c5659c2eb989e1..f6cf51d3d40fde2748c99b2c1b0f0e5c9295a66b 100755 (executable)
@@ -38,7 +38,7 @@ ERROR: no-com-interface interface ;
     dup word>> +com-interface-definitions+ get-global set-at ;
 
 : (parse-com-function) ( return name -- definition )
-    ")" scan-c-args
+    scan-c-args
     [ pointer: void prefix ] [ "this" prefix ] bi*
     <com-function-definition> ;
 
index 0be2df2f14348944e71bc91ce8f075600e4d901c..001eb7d5602042c54ca5ee4817aaea4278a071ca 100644 (file)
@@ -11,7 +11,7 @@ SYNTAX: CUDA-LIBRARY:
 
 SYNTAX: CUDA-FUNCTION:
     scan-token [ create-word-in current-cuda-library get ] keep
-    ";" scan-c-args drop define-cuda-function ;
+    scan-c-args drop define-cuda-function ;
 
 SYNTAX: CUDA-GLOBAL:
     scan-token [ create-word-in current-cuda-library get ] keep