eui 4.2.0 question

new topic     » topic index » view thread      » older message » newer message

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

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu