parser(match): add MVP type patterns (IntegerBox(x)/StringBox(s)) via AST If-chain; keep literal-only path using PeekExpr; add smoke app (apps/tests/match_type_pattern_basic.nyash); build + stage-2 smokes green
This commit is contained in:
@ -28,8 +28,12 @@ static box Main {
|
||||
NYCODE
|
||||
fi
|
||||
|
||||
set +e
|
||||
NYASH_DISABLE_PLUGINS=1 NYASH_ENABLE_USING=1 NYASH_CLI_VERBOSE=1 "$BIN" --backend vm "$APP" > /tmp/nyash-using-e2e.out
|
||||
if rg -q '^Result:\s*0\b' /tmp/nyash-using-e2e.out; then
|
||||
CODE=$?
|
||||
set -e
|
||||
# Accept either explicit "Result: 0" line (VM path) or zero exit (PyVM-only path)
|
||||
if rg -q '^Result:\s*0\b' /tmp/nyash-using-e2e.out || [ "$CODE" -eq 0 ]; then
|
||||
echo "PASS: using/nyash.link E2E (placeholder)" >&2
|
||||
else
|
||||
echo "FAIL: using/nyash.link E2E" >&2; sed -n '1,120p' /tmp/nyash-using-e2e.out; exit 1
|
||||
|
||||
Reference in New Issue
Block a user