HS: restore hs-id= after merge (compiler dispatch + runtime def)

Lost when resolving E37 reformat conflicts — re-added:
- hs-id= function in runtime.sx (JS === for elements, = for scalars)
- hs-id= dispatch in compiler.sx (after = clause)
Parser already uses hs-id= for != operator (unchanged).
This commit is contained in:
2026-04-26 18:03:48 +00:00
parent c36fd5b208
commit 7480c0f9c9
2 changed files with 10 additions and 0 deletions

View File

@@ -1151,6 +1151,11 @@
(quote =)
(hs-to-sx (nth ast 1))
(hs-to-sx (nth ast 2))))
((= head (quote hs-id=))
(list
(quote hs-id=)
(hs-to-sx (nth ast 1))
(hs-to-sx (nth ast 2))))
((= head (quote +))
(list
(quote hs-add)

View File

@@ -1151,6 +1151,11 @@
(quote =)
(hs-to-sx (nth ast 1))
(hs-to-sx (nth ast 2))))
((= head (quote hs-id=))
(list
(quote hs-id=)
(hs-to-sx (nth ast 1))
(hs-to-sx (nth ast 2))))
((= head (quote +))
(list
(quote hs-add)