Post Reply 
FW: 15048; CAS programs return Syntax Error
07-29-2024, 07:35 PM
Post: #1
FW: 15048; CAS programs return Syntax Error
Programs entered in the program editor with the CAS box checked return the Syntax Error. I can not figure out what is wrong.

Code:

#cas
erroz(h):=
BEGIN
h+1;
END;
#end

I had no trouble with the above code prior to version 15048.

Defining this on the CAS Mode page (outside of the programming editor),

Code:

erroz(h):=h+1
Visit this user's website Find all posts by this user
Quote this message in a reply
08-05-2024, 03:01 PM
Post: #2
RE: FW: 15048; CAS programs return Syntax Error
It seems that when you select the 'CAS' option while creating a program, the program does not accept the #CAS #END tags in its content, even though they are included in the program template.

Entering just the program content (without #CAS #END) was accepted and works correctly:
Code:
erroz(h):=
BEGIN
h+1;
END;

When the 'CAS' option is not selected, #CAS #END are still required.

Just don't use the 'CAS' option until it gets fixed.

Piotr Kowalewski
Find all posts by this user
Quote this message in a reply
08-14-2024, 12:32 PM
Post: #3
RE: FW: 15048; CAS programs return Syntax Error
Code:
erroz(h):=
BEGIN
h+1;
END;

Just typing in the program in the program editor will cause a Syntax Error.

However, checking the CAS box and the subsequently erasing the #cas and #end doesn't cause an error. Also, the program runs smoothly.
Visit this user's website Find all posts by this user
Quote this message in a reply
09-06-2024, 10:05 PM
Post: #4
RE: FW: 15048; CAS programs return Syntax Error
I have the same problem after updating to the current firmwarer version from Sep 1, 2024. Programs composed in the program editor, with the CAS box checked,(without #cas and #endWink, and run from the CAS main page, returns a rectangle. The firmware version from Oct 2018 didn't have that problem. How do I create a CAS program that will actually run?
Find all posts by this user
Quote this message in a reply
09-07-2024, 03:50 PM
Post: #5
RE: FW: 15048; CAS programs return Syntax Error
Try using a RETURN command? I did not have problems with getting results. Although I get a "Running non recursive emulator" message when running the program.

I have a G2.
Visit this user's website Find all posts by this user
Quote this message in a reply
09-07-2024, 04:59 PM
Post: #6
RE: FW: 15048; CAS programs return Syntax Error
Thanks so much for your reply. It works now (with or without a RETURN statement). I suspect some CAS variables got corrupted; purging them must have helped.

However, since CAS programs are now created without the #cas . . . #end brackets in the program editor, I wonder how this will all resolve, if a future upgrade of the firmware restores the old cas syntax. Will running the now created cas programs require the user to manually insert #cas . . . #end for each and every program?

I guess we'll find out.
Find all posts by this user
Quote this message in a reply
09-09-2024, 06:24 PM
Post: #7
RE: FW: 15048; CAS programs return Syntax Error
(09-07-2024 04:59 PM)Helge Gabert Wrote:  Will running the now created cas programs require the user to manually insert #cas . . . #end for each and every program?

Yes, you'll need to insert #cas . . . #end manually for the time being. The bug tracker shows that this has been fixed, so hopefully it will show up in the next release.

Strangely enough, some of my CAS programs are working with the new firmware and some are not, even after a CAS restart. Not sure what's going on there.
Find all posts by this user
Quote this message in a reply
09-09-2024, 10:59 PM
Post: #8
RE: FW: 15048; CAS programs return Syntax Error
Is there anything common to older programs that now refuse to run? Can you post one?

My old CAS programs which contain the CAS wrapper all seem to work. And the new ones, which don't contain the CAS wrapper, so far also work. (I was only concerned about a future firmware release which might expect the wrapper to be present).
Find all posts by this user
Quote this message in a reply
09-12-2024, 01:54 PM
Post: #9
RE: FW: 15048; CAS programs return Syntax Error
(09-09-2024 10:59 PM)Helge Gabert Wrote:  Is there anything common to older programs that now refuse to run? Can you post one?

Even as something as simple as this generates a "Syntax Error"
Code:
#cas
aaa():=
begin
 return 123.456;
end;
#end

Yet, other longer programs work fine.
Find all posts by this user
Quote this message in a reply
09-13-2024, 03:11 AM
Post: #10
RE: FW: 15048; CAS programs return Syntax Error
Yes, confirmed. But it works for me if I add a dummy variable, e.g., aaa(k) and call it from Home or CAS with something like aaa(1).
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 4 Guest(s)