Add diagnostics spans, CLI/view input feeding, and len/str/int builtins.

Unify bytecode errors with path:line:col, support --stdin-file and live view preset stdin, and ship the S0 standard library with gold coverage.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-08-04 17:26:09 +08:00
1 parent 31a4b69bbd
commit 30cd39fd8f
25 files changed
+964 -111

No files matched your search

+36
View File
@@ -0,0 +1,36 @@
---
title: len str int
description: Built-in conversions and length
---
# main
*`s` = hello*
*`n` = > len `s`*
> print text=`n`
`xs` =
| item |
|------|
| a |
| b |
| c |
*`m` = > len `xs`*
> print text=`m`
*`t` = > str 42*
> print text=`t`
*`i` = > int `t`*
> print text=`i`
*`j` = > int True*
> print text=`j`