Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

 

gmBasic Command Statements

The details of the processing performed by gmBasic are controlled via an XML-based command line script. The commandstatements are the primary instructions used to produce translations as opposed to making and modifying declarations or performing auxiliary tasks.

 

The statement keyword for each command line script is usually gmBasic; however, it may be anything. The gmBasic statement itself has no attributes. Each of the command statements is a substatement of the gmBasicstatement; however, several may be used in other contexts as well. These statements are as follows:

 

StatementDescription of use
AnalyseControls the code analysis of a compiled code. Analysis is performed to change the intermediate code produced by the compiler into a form that can be authored in the target language.
AuthorControls the actual authoring of the analysed intermediate code in the target language.
CompileCompiles a BASIC project or an ASP pageslice into an intermediate code unit. It also loads all information about externally referenced libraries and builds a table of all symbols encountered in either the source code or the external libraries.
FixSupports making changes to the source code before it is compiled or target code before it is written.
IfSpecifies certain conditions for the inclusion or exclusion of the substatements within its scope.
IncludeSpecifies the name of an external gmPL file whose statements are to be processed before processing the next statement in the including script.
LoadEnvironmentForces the loading of the environment that must be defined before any code can be processed.
LoadRuntimeLoads a gmNI runtime Dll into the current execution space. This Dll may well be intermingled with Dlls loaded via refactoring and select statements.
OutputSpecifies where information being written should be sent and how it should be formatted.
ReferenceAlters the references information associated with a compilation unit.
RegistryEnters various identifier pairs into storage for a variety of purposes. Registry statements are a primary vehicle used by gmBasic to communicate with itself during the translation tuning phase.
RunCommandExecutes a method written using gmSL. This method may be predefined via the metalanguage. It may also be in a separate GlobalSettings file or it may be locally defined within the current script.
SelectSpecifies a wide range of attributes which control the behavior of gmBasic and which supply values for the properties of the gmSL Select class.
StorageSpecifies how information gathered by the current script is to be stored in a virtual binary information file.
Table of Contents

  • No labels