locals.parser: only need to clone manifest.
parent
fc467b72a5
commit
e69d0a7b45
|
@ -3,7 +3,6 @@ locals.parser namespaces parser prettyprint sequences sorting
|
||||||
tools.test vocabs vocabs.parser ;
|
tools.test vocabs vocabs.parser ;
|
||||||
IN: locals.parser.tests
|
IN: locals.parser.tests
|
||||||
|
|
||||||
<<
|
|
||||||
! (::)
|
! (::)
|
||||||
{
|
{
|
||||||
"dobiedoo"
|
"dobiedoo"
|
||||||
|
@ -21,10 +20,9 @@ IN: locals.parser.tests
|
||||||
[
|
[
|
||||||
"um" parse-def
|
"um" parse-def
|
||||||
local>> name>>
|
local>> name>>
|
||||||
manifest get qualified-vocabs>> last words>> keys "um" swap member?
|
qualified-vocabs last words>> keys "um" swap member?
|
||||||
] with-compilation-unit
|
] with-compilation-unit
|
||||||
] unit-test
|
] unit-test
|
||||||
>>
|
|
||||||
|
|
||||||
! check-local-name
|
! check-local-name
|
||||||
{ "hello" } [
|
{ "hello" } [
|
||||||
|
@ -56,14 +54,15 @@ IN: locals.parser.tests
|
||||||
[ locals>> [ name>> ] map ] [ keys ] bi*
|
[ locals>> [ name>> ] map ] [ keys ] bi*
|
||||||
] unit-test
|
] unit-test
|
||||||
|
|
||||||
<<
|
|
||||||
! with-lambda-scope
|
! with-lambda-scope
|
||||||
{ t } [
|
{ t } [
|
||||||
qualified-vocabs length
|
[
|
||||||
H{ } clone [
|
qualified-vocabs length
|
||||||
"hey there!" qualified-vocabs push [ ]
|
H{ } clone [
|
||||||
] with-lambda-scope drop
|
"hey there!" qualified-vocabs push [ ]
|
||||||
qualified-vocabs length =
|
] with-lambda-scope drop
|
||||||
|
qualified-vocabs length =
|
||||||
|
] with-compilation-unit
|
||||||
] unit-test
|
] unit-test
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -76,4 +75,3 @@ IN: locals.parser.tests
|
||||||
] with-lexer
|
] with-lexer
|
||||||
] with-compilation-unit unparse
|
] with-compilation-unit unparse
|
||||||
] unit-test
|
] unit-test
|
||||||
>>
|
|
||||||
|
|
|
@ -35,7 +35,7 @@ SINGLETON: lambda-parser
|
||||||
'[
|
'[
|
||||||
in-lambda? on
|
in-lambda? on
|
||||||
lambda-parser quotation-parser set
|
lambda-parser quotation-parser set
|
||||||
manifest [ clone [ clone ] change-qualified-vocabs ] change
|
manifest [ clone ] change
|
||||||
use-words @
|
use-words @
|
||||||
] with-scope ; inline
|
] with-scope ; inline
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue