alien.inline.types: fix parse-c++-type

db4
Jeremy Hughes 2009-07-22 15:57:29 +12:00
parent c780bb724d
commit 8ae1fb66a3
1 changed files with 2 additions and 2 deletions

View 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