dynamically generate keyword,function, constant lists?

Everything else that doesn't fall into one of the other PB categories.
jassing
Addict
Addict
Posts: 1885
Joined: Wed Feb 17, 2010 12:00 am

dynamically generate keyword,function, constant lists?

Post by jassing »

I thought I had some code that did it; but I can't locate it; and can't find it in the forum, so ...

what I"m looking for is a way to generate a list of keywords & functions names/compiler directives as well as a list of constants& their values.

Something flexible enough that can be run at any time, so the list is generatd and current for whatever version of PB it's run on.
User avatar
skywalk
Addict
Addict
Posts: 4316
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: dynamically generate keyword,function, constant lists?

Post by skywalk »

The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
User avatar
Danilo
Addict
Addict
Posts: 3036
Joined: Sat Apr 26, 2003 8:26 am
Location: Planet Earth

Re: dynamically generate keyword,function, constant lists?

Post by Danilo »

Keyword list (should not change very often):

Code: Select all

Break : Continue : For : To : Next : Step : ForEach
Goto : Gosub : Return : FakeReturn
If : Else : ElseIf : EndIf
Repeat : Until : ForEver
Select : Case : Default : EndSelect
While : Wend
End : Swap
Define : Dim : ReDim
Enumeration : EndEnumeration
Interface : EndInterface : 
Module : EndModule : UseModule : UnuseModule : DeclareModule : EndDeclareModule

NewList
NewMap

Structure : EndStructure : StructureUnion : EndStructureUnion
Interface : EndInterface : Import : ImportC : EndImport
    
With : EndWith

Global : Protected : Static : Shared : Runtime : Threaded
Array : List : Map : NewList : NewMap 

Procedure : EndProcedure : ProcedureC : ProcedureDLL : ProcedureCDLL : ProcedureReturn 
Declare : DeclareC : DeclareCDLL : DeclareDLL
Import : EndImport : As : ImportC
Macro : EndMacro : UndefineMacro : MacroExpandedCount
Prototype : PrototypeC
Debug : DebugLevel : CallDebugger : DisableDebugger : EnableDebugger
And : Or : XOr : Not

Data : DataSection : EndDataSection : Restore : Read 

EnableASM : EnableExplicit : DisableASM : DisableExplicit

IncludeFile : IncludeBinary : IncludePath : XIncludeFile 

CompilerIf : CompilerElseIf : CompilerElse : CompilerEndIf

CompilerSelect : CompilerCase : CompilerDefault : CompilerEndSelect
CompilerError


; not keywords, yet:

Extends
Align
Hope it's complete. ;)
jassing
Addict
Addict
Posts: 1885
Joined: Wed Feb 17, 2010 12:00 am

Re: dynamically generate keyword,function, constant lists?

Post by jassing »

Thanks !
Post Reply