News:

PROTON pic BASIC Compilers for PIC, PIC24, dsPIC33

Main Menu

Updated Database.mcd

Started by JohnB, Mar 31, 2025, 09:57 PM

Previous topic - Next topic

JohnB

Attached is an updated Database.mcd. This file has been extended to cover all the current Declare statements supported by the compiler. This is derived from a declare list from Les. I expanded this with hint information etc where I able. I post this update specifically for Positron Studio users because unlike the original IDE, Positron Studio recognises only valid declares which identified in the Databasse.mcd.

Rename the original database.mcd file and replace with the attached.
JohnB

atomix

#1
I also found a repeat in the file "c:\Program Files (x86)\ProtonIDE\Plugin\Assembler\database.mcd" for the word "fbcl".

KEY ("fbcl")
    Devicecore = [dc12, dc14, dc16]
       Highlighter = KeywordASM
ENDKEY

KEY ("ff1l")
    Devicecore = [dc12, dc14, dc16]
       Highlighter = KeywordASM
ENDKEY

KEY ("ff1r")
    Devicecore = [dc12, dc14, dc16]
       Highlighter = KeywordASM
ENDKEY

KEY ("fbcl")
    Devicecore = [dc12, dc14, dc16]
       Highlighter = KeywordASM
ENDKEY

As well as dead words in the file "c:\Program Files (x86)\ProtonIDE\database.mcd"

DigitalRead
DigitalWrite
Ink
OtherWise
OtherWiseIf
Paper

JohnB

I have simply taken a list of Declare Names Les provided and expanded them to Key records and appended them to the database.mcd.  I have not looked at the assembler version of the file.  This file is maintained by Les and I have just done the minimum to enable Positron Studio to correctly show declares in the editor.

This is a once off and I am assume Les will maintain the file as part of the compiler release.
JohnB

atomix

Les, pay attention to my post above.

top204

#4
Sorry about those texts John, and many thanks for adding the texts to the mcd file.

Over the 20 'odd' years, things have been added and removed from the IDE's highlighting file so many times, it is hard to keep up with it.

So the items to remove are:

OtherWise
OtherWiseIf

Because I have recently taken them out of the compilers syntax, but forgot to remove them from the .mcd file.

The DigitalRead and DigitalWrite are commands that I am implementing in future compiler versions. The Ink and Paper directives are for the Print command, when using a coloured graphic LCD, as shown in the "ILI9320_Print_Demo.bas" code listing in the "Samples24" folder.

keytapper

I think it's hard to maintain that editor, Mr. Les you should consider to share your effort for the flag editor.

I should update my highlighter for the kate editor. There could be other features like paste with indentation, where already it has started one, another like a source formatting, but that is likely a YACC.
Ignorance comes with a cost