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.
dynamically generate keyword,function, constant lists?
Re: dynamically generate keyword,function, constant lists?
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
Re: dynamically generate keyword,function, constant lists?
Keyword list (should not change very often):
Hope it's complete. 
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