Casio Prizm BASIC Highlight syntax for VIM editor :

Update:
-------------------
2020-04-06:
- Added keywords specific for functions only.
- Plugin is on the master branch.
------------------------

- A repository having Highlight syntax enabled for VIM editor under development:

https://github.com/malagasonfire/prizmbasic

- Instructions are provided in the link above

Reason: offline editor having the keywords on the casio prizm manual to ease coding between PC and Calculator . May be used for another editors of preference.


Notes: May be also implemented for more calculators. Smile
While was transporting keywords to the plugin, i've stumble uppon a command ',' that correlates to "Para," in txt on the manual from the casio prizm cg50 v3.30.

thankfully the staff gave a lot of help and a idea came to create a txt fixe with the "Para," keyword to check what it translates into the BASIC command... well guess what... it is a ",".

TXT content:


Code:

'ProgramMode:RUN
B=0
Do
BDispsB=B+1
LpWhile (B<10)
Para,



Images from manual and screenshot from calculator

https://imgur.com/CGMm3aU

https://imgur.com/ZfI7NQU

However didn't find in the calculator menu's yet. Can someone tell where is this from?
I don’t know basic but perhaps , and Para simply wrap the line i.e. lets you continue previous line in the next one?
amazonka wrote:
I don’t know basic but perhaps , and Para simply wrap the line i.e. lets you continue previous line in the next one?


Thanks for the reply. Let me check if i understood ....

Are you saying that the "Para," keyword it translates somehow to a command that is "," and it is a line continuation to the next command in BASIC, in the same line eg:

- Casio BASIC in TXT

Code:

0->APara,10->B


- Casio BASIC:


Code:

0→A,10→B



. There is also the "," in the alpha mode as char that splits arguments eg the integral command. I'll re-check later on the manual if there is some sort of mention to this.

Again thanks for the hint.
I'll keep updating further commands to the VIM syntax plugin.
Oppsss my mistake assuming that the line separator is the "," . The line separator which is designated as multi-statement command is ":" as described in the Casio Cg50 v3.30 manual, page 309 ( 8-13):


https://imgur.com/WDCRHKz

My apologies
Perhaps found a typo translation on manual from prizm cg50 on the following command => Text

Command


Code:

 Exp(a·b^x) => Exp(a^bx)


Images from manual:

https://imgur.com/dpXsX24
https://imgur.com/JOImWR8
https://imgur.com/BnD2sY3
https://imgur.com/KQAwsri

The other thing that got my attention was the ExpReg keywords but they are covered on other section of the manual, page 8-41 or page 337 from Soft manual v3.30 for prizm and only visible on the translation page, not on menu.
malagas_fire wrote:
Perhaps found a typo translation on manual from prizm cg50 on the following command => Text

Command


Code:

 Exp(a·b^x) => Exp(a^bx)


Images from manual:

https://imgur.com/dpXsX24
https://imgur.com/JOImWR8
https://imgur.com/BnD2sY3
https://imgur.com/KQAwsri

The other thing that got my attention was the ExpReg keywords but they are covered on other section of the manual, page 8-41 or page 337 from Soft manual v3.30 for prizm and only visible on the translation page, not on menu.


Here are the missing screenshots about the typo mentioned on the post above, after converting to txt

- Screenshot from the calculator
https://imgur.com/viKlJEA

- Screenshot from the txt editor:

https://imgur.com/HH8stnJ


So there is really a typo indeed...
Just a quick update on the vim plugin:

- duplicate the keywords Statements to keywords Functions and removing non-Statements, following fx cg50 manual. It will require a double or maybe a triple check if any is missed or duplicated.

- the constants will be added further as keyword Statements.
A quick update on the vim plugin:

- Implemented keywords as only functions on the Matrix Section.

Also updated CG50 to 3.40 firmware and so far differences only points to languages updates, maybe corrections...
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement