Page 1 of 1
dynamically generate keyword,function, constant lists?
Posted: Wed Oct 02, 2013 11:55 pm
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.
Re: dynamically generate keyword,function, constant lists?
Posted: Thu Oct 03, 2013 12:06 am
by skywalk
Re: dynamically generate keyword,function, constant lists?
Posted: Thu Oct 03, 2013 6:39 am
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.

Re: dynamically generate keyword,function, constant lists?
Posted: Thu Oct 03, 2013 3:44 pm
by jassing
Thanks !