factor/library/test/parsing-word.factor

19 lines
421 B
Factor
Raw Normal View History

IN: temporary
2005-05-18 16:26:22 -04:00
USING: kernel parser sequences test words ;
DEFER: foo
": foo 2 2 + . ; parsing" eval
[ [ ] ] [ "USE: temporary foo" parse ] unit-test
": foo 2 2 + . ;" eval
[ [ POSTPONE: foo ] ] [ "USE: temporary foo" parse ] unit-test
2004-10-27 23:13:00 -04:00
! Test > 1 ( ) comment; only the first one should be used.
[ t ] [
2005-05-18 16:26:22 -04:00
CHAR: a "IN: temporary : foo ( a ) ( b ) ;" parse drop word
2005-07-16 22:16:18 -04:00
"stack-effect" word-prop member?
2004-10-27 23:13:00 -04:00
] unit-test