ABOUT: "parser"
HELP: location
-{ $values { "loc" "a " { $snippet "{ path line# }" } " pair" } }
+{ $values { "loc/f" "a " { $snippet "{ path line# }" } " pair or " { $link f } } }
{ $description "Outputs the current parser location. This value can be passed to " { $link set-where } " or " { $link remember-definition } "." } ;
HELP: save-location
] unit-test
! Ensure this works when not from a source file
-[
- "abcde" create-class-in \ tuple { "a" "b" "c" "d" "e" } define-tuple-class
-] with-compilation-unit
\ No newline at end of file
+{ } [
+ [[
+ [
+ USING: classes.parser classes.tuple compiler.units kernel ;
+ IN: parser.tests "abcde" create-class-in \ tuple { "a" "b" "c" "d" "e" } define-tuple-class
+ ] with-compilation-unit
+ ]] eval( -- )
+] unit-test