You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6863850
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/compiler-language.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ these APIs and provides Python-side JavaScript compatibility objects.
9
9
10
10
Start with a single-module equivalent of Shimify's text_metrics application:
11
11
Unicode character count, explicitly selected ASCII word separators, LF-based
12
-
line count and a tuple of Python integer results. MOD-01 later adds its local
12
+
line count and a tuple of Python integer results. The [local-module profile](compiler-modules.md) adds its
13
13
helper import and package re-export. The selected input domain is builtin str;
14
14
non-string input raises TypeError("text must be str"). String subclass overrides
15
15
and arbitrary user objects are outside the first profile.
@@ -23,7 +23,7 @@ and arbitrary user objects are outside the first profile.
23
23
| Operations | Supported scalar arithmetic/comparisons, Python and/or/not, identity on supported values, string membership and supported indexing. Mixed or unknown operand forms need helpers or a source-located rejection. |
24
24
| Builtins/errors | len on adopted strings/tuples, print of adopted values, approved isinstance checks and explicit builtin TypeError raising needed by the fixture. No eval/exec, reflection or undeclared I/O. |
25
25
| JavaScript API | Resolve explicit imports/aliases through a versioned symbol/method registry. Start with Array.of and length as a binding fixture; other exports/methods need adopted signatures and parity cases before lowering. |
26
-
| Imports | Only approved JavaScript registry imports in the single-module profile. Local modules follow MOD-01; Python stdlib/third-party/native imports require explicit future adapters. |
26
+
| Imports | Only approved JavaScript registry imports in the single-module profile. Named local imports use the separate modules profile; Python stdlib/third-party/native imports require explicit future adapters. |
27
27
28
28
Every AST form and operation is supported, rejected or deferred explicitly. A
29
29
Python-side JavaScript API existing today does not automatically make it
0 commit comments