---- session ----

────────────────────────────────────────
 SHEERPOWER V011.032.14  │  KEYS · HELP
────────────────────────────────────────
 File   📁 c:\users\misterdan\browser-agent\examples\regression\r_cae_cmds_file.txt
 Saved  ⭐ 0 Starred   🕘 0 History   🔤 40 Abbreviations
Skill levels
  1 - Beginner  new to programming
  2 - Newcomer  new to Sheerpower, not to programming
  3 - Regular   writes Sheerpower often
  4 - Fluent    tables, web handlers and arrays every day
  5 - Expert    knows the language well
skill n  chooses yours (1 to 5) and remembers it
>>> zero = 0
>>> print eval('1/zero')
?? Division by zero
>>> pritn 5
    | ?? Unrecognized statement
    |    --> line 3, col 1
    |
  3 | pritn 5
    | ^
    |    Help>>   'pritn' is not a statement -- did you mean  print?  (f = fix it)

1 error, first at line 3 -- correct them to RUN

>>> print 1 / zero
?? Division by zero
>>> print never_set + 1
    | ?? Unassigned variable: NEVER_SET
    |    --> line 5, col 7
    |
  5 | print never_set + 1
    |       ^

1 error, first at line 5 -- correct them to RUN

>>> print 'still here'
still here
>>> 

>>> 
ok   A1 the eval's own divide by zero and the later one are both shown
ok   A2 a typo after it is reported
ok   A3 an unassigned variable after it is reported, not read as 0
ok   A4 the session goes on
---- session ----

────────────────────────────────────────
 SHEERPOWER V011.032.14  │  KEYS · HELP
────────────────────────────────────────
 File   📁 c:\users\misterdan\browser-agent\examples\regression\r_cae_cmds_file.txt
 Saved  ⭐ 0 Starred   🕘 0 History   🔤 40 Abbreviations
Skill levels
  1 - Beginner  new to programming
  2 - Newcomer  new to Sheerpower, not to programming
  3 - Regular   writes Sheerpower often
  4 - Fluent    tables, web handlers and arrays every day
  5 - Expert    knows the language well
skill n  chooses yours (1 to 5) and remembers it
>>> print eval('1/0')
?? Expression or statement invalid>> 1/0
>>> print 'after the fold'
after the fold
>>> print 'line three'
line three
>>> 

>>> 
ok   B1 the eval's failure is reported as its own error
ok   B2 the next line RUNS
ok   B3 no compile error block is left for it
ok   B4 the session goes on
---- session ----

────────────────────────────────────────
 SHEERPOWER V011.032.14  │  KEYS · HELP
────────────────────────────────────────
 File   📁 c:\users\misterdan\browser-agent\examples\regression\r_cae_cmds_file.txt
 Saved  ⭐ 0 Starred   🕘 0 History   🔤 40 Abbreviations
Skill levels
  1 - Beginner  new to programming
  2 - Newcomer  new to Sheerpower, not to programming
  3 - Regular   writes Sheerpower often
  4 - Fluent    tables, web handlers and arrays every day
  5 - Expert    knows the language well
skill n  chooses yours (1 to 5) and remembers it
>>> run 'c:\users\misterdan\browser-agent\examples\regression\r_cae_prog.spsrc'
c:\users\misterdan\browser-agent\examples\regression\r_cae_prog.spsrc
the fee program is loaded
>>> print add_fee(base = 5)
 15 
>>> print 1 +
    | ?? An expression is missing or must follow a comma or a trailing comma needs to be continued
    |    with a &
    |    --> line 2, col 10
    |
  2 | print 1 +
    |          ^
    |    Help>>   expected a value here, found 'end of line'

1 error, first at line 2 -- correct them to RUN

>>> print add_fee(base = 5)
 15 
>>> print add_fee(base = 5, surcharge = 1)
 6 
>>> print 'alive after the calls'
alive after the calls
>>> 

>>> 
ok   C1 the program loaded
ok   C2 the call works before AND after the failed line
ok   C3 an explicit argument too
ok   C4 the console survives (no crash)
---- session ----

────────────────────────────────────────
 SHEERPOWER V011.032.14  │  KEYS · HELP
────────────────────────────────────────
 File   📁 c:\users\misterdan\browser-agent\examples\regression\r_cae_cmds_file.txt
 Saved  ⭐ 0 Starred   🕘 0 History   🔤 40 Abbreviations
Skill levels
  1 - Beginner  new to programming
  2 - Newcomer  new to Sheerpower, not to programming
  3 - Regular   writes Sheerpower often
  4 - Fluent    tables, web handlers and arrays every day
  5 - Expert    knows the language well
skill n  chooses yours (1 to 5) and remembers it
>>> x++ y
    | ?? Syntax error
    |    --> line 1, col 3
    |
  1 | x++ y
    |   ^
    |    Help>>   Variable++ badly formed

1 error, first at line 1 -- correct them to RUN

>>> print 'after the preview'
after the preview
>>> type feet
>>> declare feet b
>>> x$ = b
    | ?? Data type mismatch
    |    --> line 5, col 6
    |
  5 | x$ = b
    |      ^
    |    Help>>   expected a string expression, but got a numeric one (str$() converts a number to
    |             text)

1 error, first at line 5 -- correct them to RUN

>>> print 'after the custom type'
after the custom type
>>> type money
>>> declare money pay
>>> pay = b
    | ?? Declared data type mismatch
    |    --> line 9, col 7
    |
  9 | pay = b
    |       ^
    |    Help>>   PAY is of type MONEY, B is of type FEET

1 error, first at line 9 -- correct them to RUN

>>> print 'after the custom pair'
after the custom pair
>>> dim v(3) \ v(2) = 7
>>> call "Sleep"(v)
    | ?? An array cannot be passed to an external (DLL) routine
    |    --> line 12, col 14
    |
 12 | call "Sleep"(v)
    |              ^
    |    Fix>>    pass one element through a variable of its type:  one = V(i)  then  call ... (one
    |             by ref)  then  V(i) = one

1 error, first at line 12 -- correct them to RUN

>>> print v(2)
 7 
>>> print 'end of session'
end of session
>>> 

>>> 
ok   D1 x++ y is reported
ok   D2 the next line gets no error from its leftover token
ok   D3 the next line runs
ok   D4 the FEET value into a string is reported
ok   D5 the line after it is not silently ignored
ok   D5b a FEET value into a MONEY is reported
ok   D5c the line after it runs
ok   D6 the array argument is refused
ok   D7 the element after it reads 7, not an address
ok   D8 the session goes on
r_console_after_errors: all checks passed
