[BREAKING] Feat: quotation is now using ()

This commit is contained in:
2026-02-28 20:25:59 +01:00
parent ec98274dfe
commit 651ed1219d
24 changed files with 182 additions and 169 deletions

View File

@@ -68,12 +68,12 @@ fn unexpected_semicolon_errors() {
#[test]
fn apply_executes_quotation() {
expect_int("5 { 2 * } apply", 10);
expect_int("5 ( 2 * ) apply", 10);
}
#[test]
fn apply_with_stack_ops() {
expect_int("3 4 { + } apply", 7);
expect_int("3 4 ( + ) apply", 7);
}
#[test]
@@ -88,12 +88,12 @@ fn apply_non_quotation_errors() {
#[test]
fn apply_nested() {
expect_int("2 { { 3 * } apply } apply", 6);
expect_int("2 ( ( 3 * ) apply ) apply", 6);
}
#[test]
fn define_word_containing_quotation() {
expect_int(": dbl { 2 * } apply ; 7 dbl", 14);
expect_int(": dbl ( 2 * ) apply ; 7 dbl", 14);
}
#[test]