I don't believe there is a way of performing macro substitution in S*BASIC programming. Now, it can probably be implemented in one form or another.
The most obvious is a pre-processor that takes a macro and expands it before the program is actually sent to a compiler or parser. C has a pre-processor that does exactly this.
Another way to do it is to create a macro in a text editor that does the substitution for you. Either as a form of pre-processor, or as a keyboard shortcut.
I don't think it is possible inside S*BASIC, as this would require a change in the S*BASIC code.
Structured SuperBasic (SSB) is a form of pre-processor that does things like conditional compilation (IF DEF's), combining S*BASIC modules into one program (#INCLUDE statement), and so on. Some form of substitution could be implemented. If you feel adventure some, the SSB source code comes in the package and you can take it as a start and go from there.
Tim Swenson
- [ql-users] Sbasic and macro substitutions Fran�ois Van Emelen
- Re: [ql-users] Sbasic and macro substitutions Timothy Swenson
- Re: [ql-users] Sbasic and macro substitutions TonyTebby
- Re: [ql-users] Sbasic and macro substitut... Marcel Kilgus
- Re: [ql-users] Sbasic and macro substitutions Fran�ois Van Emelen
- Re: [ql-users] Sbasic and macro substitut... Timothy Swenson
- Re: [ql-users] Sbasic and macro subst... Phoebus Dokos
- Re: [ql-users] Sbasic and macro substitut... wlenerz
- Re: [ql-users] Sbasic and macro subst... wlenerz
- Re: [ql-users] Sbasic and macro ... Fran�ois Van Emelen
- Re: [ql-users] Sbasic and macro substitutions TonyTebby
- Re: [ql-users] Sbasic and macro substitutions Marcel Kilgus
