Mixed Case Keyword list for PureBasic?

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by ebknoppert.

Is there a keyword list i can use?
I used the help but some parts seem missing or hard to find.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Pupil.

When you start the PureBasic editor it creates a list of all the functions available in the different libraries, this file can be found in your purebasic folder: "PureBasic\Compilers\PBFunctionListing.txt", i think there's some programs on the resource site that extracts these commands and make a keyword list for UltraEdit and other editors aswell..
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by ebknoppert.

That one is incomplete.
If then etc.. are missing
I'm looking for the complete list.
Also the internal procedures and constants starting with #....
As the editor uses.
I have seen the 'other' list, also incomplete..
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Pupil.

I don't know if there is a complete list out there, but you should be able to assemble one pretty easily by mending together information from a couple of sources..

* look at the CVS for the constants, located under residents.
* Basic Keywords (If,For ...) see Editor source on CVS ("CheckPureBasicKeyWords.pb").
* Library functions, see file "PureBasic\Compilers\PBFunctionListing.txt".

CVS located at cvs.purebasic.com
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by tinman.

The "SyntaxHighlight.pb" file from the editor source also contains the internal keywords, and x86 ASM keywords. It seems to be missing the "SizeOf" keyword though.

I started using ConText today and wrote this little tool to extract all the command names to the clipboard. Perhaps it is of some use to you:

Code: Select all

function_file.s=OpenFileRequester("Select file with PureBasic function listing", "D:\Program Files\PureBasic\Compilers\PBFunctionListing.txt", "All files | *.*", 0)
If function_file
    If OpenFile(0, function_file)
        number_commands.l = Val(ReadString())
        
        export_string.s = ""
        
        While number_commands>0 And Eof(0)=0
            command.s = ReadString()
            end_of_name.l = FindString(command, " ", 0) - 1
            If end_of_name<1
                end_of_name = Len(command)
            EndIf
            
            command_name.s = Left(command, end_of_name)
            export_string = export_string + command_name + Chr(13)
        Wend
        
        SetClipboardText(export_string)
        MessageRequester("Info", "All command names copied to clipboard", #PB_MessageRequester_OK)
        
        CloseFile(0)
    Else
        MessageRequester("Error", "Could not open specified file", #PB_MessageRequester_OK)
    EndIf
EndIf
End

--
I used to be a nihilist but I don't believe in that any more.
(Win98first ed. + all updates, PB3.51, external editor)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by ebknoppert.

Could you email that file?
I seem to miss it, maybe because i haven't received my registered copy yet.
info @ hellobasic.com
Thanks,
Post Reply