modern: Allow FOO: FOO; again
parent
7785fea284
commit
ed43df35fb
|
@ -183,6 +183,7 @@ IN: modern.tests
|
|||
} [ "<FOO: foo BAR: bar ;FOO>" string>literals >strings ] unit-test
|
||||
|
||||
|
||||
![[
|
||||
{
|
||||
{
|
||||
{
|
||||
|
@ -202,3 +203,14 @@ IN: modern.tests
|
|||
}
|
||||
}
|
||||
} [ "foo:: <FOO FOO>[ 0 ][ 1 ][ 2 ][ 3 ] <BAR BAR>" string>literals >strings ] unit-test
|
||||
]]
|
||||
|
||||
{
|
||||
{
|
||||
{ "foo::" { { "<FOO" { } "FOO>" } { "[" { "0" } "]" } } }
|
||||
{ "[" { "1" } "]" }
|
||||
{ "[" { "2" } "]" }
|
||||
{ "[" { "3" } "]" }
|
||||
{ "<BAR" { } "BAR>" }
|
||||
}
|
||||
} [ "foo:: <FOO FOO> [ 0 ] [ 1 ] [ 2 ] [ 3 ] <BAR BAR>" string>literals >strings ] unit-test
|
||||
|
|
|
@ -207,6 +207,7 @@ ERROR: unexpected-terminator n string slice ;
|
|||
! Also in stack effects ( T: int -- ) can be ended by -- and )
|
||||
dup ?last {
|
||||
{ [ dup ";" sequence= ] [ drop unclip-last 3array ] }
|
||||
{ [ dup ";" tail? ] [ drop unclip-last 3array ] }
|
||||
{ [ dup "--" sequence= ] [ drop unclip-last -rot 2array [ rewind-slice ] dip ] }
|
||||
{ [ dup "]" sequence= ] [ drop unclip-last -rot 2array [ rewind-slice ] dip ] }
|
||||
{ [ dup "}" sequence= ] [ drop unclip-last -rot 2array [ rewind-slice ] dip ] }
|
||||
|
|
Loading…
Reference in New Issue