]> gitweb.factorcode.org Git - factor.git/commitdiff
alien.inline.types: fix parse-c++-type
authorJeremy Hughes <jedahu@gmail.com>
Wed, 22 Jul 2009 03:57:29 +0000 (15:57 +1200)
committerJeremy Hughes <jedahu@gmail.com>
Wed, 22 Jul 2009 03:57:29 +0000 (15:57 +1200)
extra/alien/inline/types/types.factor

index fe4f6a4180a0be983db85a22349c7b77cdbd5589..34162f422e895fa83ba390cd9957fb5ba9f98dde 100644 (file)
@@ -68,7 +68,7 @@ EBNF: (parse-c++-type)
 dig  = [0-9]
 alpha = [a-zA-Z]
 alphanum = [1-9a-zA-Z]
-name = [_a-zA-Z] [_a-zA-Z1-9]* => [[ first2 swap prefix >string ]]
+name = [_a-zA-Z] [_a-zA-Z1-9:]* => [[ first2 swap prefix >string ]]
 ptr = [*&] => [[ empty? not ]]
 
 param = "," " "* type " "* => [[ third ]]
@@ -79,7 +79,7 @@ type = name " "* params? " "* ptr? => [[ { 0 2 4 } [ swap nth ] with map first3
 ;EBNF
 
 : parse-c++-type ( str -- c++-type )
-    factorize-type parse-c++-type ;
+    factorize-type (parse-c++-type) ;
 
 DEFER: c++-type>string