Twistpad Carthago Software forums / Twistpad /  

 Forth syntax keywords

 
Donald Johnson
Member
#1 | Posted: 9 Nov 2014 09:14 
I've created a syntax file for Forth and am getting an error message when loading Forth files:
Syntax file for "4th" is invalid
the syntax cannot be applied.
'=2' is not a valid integer range
This error is produced whenever a keyword has an equals sign in it. For example:
Keyword12=<=
I did read the previous topic
http://www.carthagosoft.net/forums/index.php?&action=vthread&forum=8&t opic=1039, and that v 2.51 SR1 fixed the problem where '=' is a keyword. (I am running this latest release.)
I get no error message with this:
Keyword==
Thanks,
Donald.

Donald Johnson
Member
#2 | Posted: 9 Nov 2014 09:20 
Forth has many keywords with '=' signs:
Keyword11=0<;0<=;0<>;0=;0>;0>=
Keyword12=<;<=;<>;=;>;>=
Keyword13=U<;U<=;U<>;U=;U>;U>=
Keyword14=D0<;D0<=;D0<>;D0=;D0>;D0>=
Keyword15=D<;D<=;D<>;D=;D>;D>=
Keyword16=DU<;DU<=;DU<>;DU=;DU>;DU>=
So, a general solution would be needed, not one only for '<=', etc.

Andre Santos
Carthago
Moderator
#3 | Posted: 10 Nov 2014 17:29 
Donald,

Thanks for the input, it was fixed in SR1 but it was only if the first keyword was a equal sing.

Hopefully I've fixed this issue and made available to download Twistpad 2.5 SR2 Beta 1 for registered user's, so you can try that version for your "4th" Syntax

Thanks for the report,

André Santos
Carthago Software Support
http://www.carthagosoft.net

Donald Johnson
Member
#4 | Posted: 13 Nov 2014 18:23 
I've been using SR2 Beta 1 for a couple days now, and have had no problems editing/viewing Forth files with my Forth syntax definition file.
Thanks!
The syntax file is for kForth, but could easily be modified for other flavors of Forth.
Would you like a copy of the definition for the Twistpad add-ons downloads page?
Donald.

Andre Santos
Carthago
Moderator
#5 | Posted: 14 Nov 2014 04:57 
Donald,

Glad it's working. Thank you for promptly reporting this issue.

It would be great if you send me your syntax file, I would gladly made it available to other user's, with full credits to you on the download syntax page.

Please send me the SDF file to support@carthagosoft.net

Thank you again,

André Santos
Carthago Software Support
http://www.carthagosoft.net

ft95
Member
#6 | Posted: 4 Dec 2019 23:43 
Thank you this thread for helping me find a solution.

Twistpad Carthago Software forums / Twistpad /
 Forth syntax keywords

Your Reply Click this icon to move up to the quoted message


 
Only registered users are allowed to post here. Please, enter your username/password details upon posting a message, or register first.

 

  Powered By minibb