eui 4.2.0 question
- Posted by axtens_bruce 2 weeks ago
- 194 views
I asked Grok to write me an interpreter in OpenEuphoria 4.1. When I ran it I got
>\Users\bugma\euphoria\bin\eui.exe qhand.ex C:\Users\bugma\Source\Repos\Present\Scripts\QHand\qhand.ex:225 <0132>:: Syntax error - expected to see possibly 'then', not '(' if start < 1 or length < 0 or start > length(qih) then ^
atom start = to_number(tokens[2]) atom length = to_number(tokens[3]) if start < 1 or length < 0 or start > length(qih) then printf(1, "Runtime error: Invalid substring range at line %d\n", {pc}) abort(1) end if
qih is a sequence.
Grok hallucinating again? The code is on Github if interested
-Bruce