TPaxLanguage Properties


TPaxLanguage.CallConvention

Defines default call convention.
CallConvention: TPAXCallConv

TPAXCallConv = (ccRegister, ccPascal, ccCDecl, ccStdCall, ccSafeCall);

The value of CallConvention is ccRegister for paxPascal, ccStdCall for paxBasic, ccCDecl for paxC, ccStdCall for paxJavaScript.

TPaxLanguage.CompilerDirectives

List of compiler directives.
CompilerDirectives: TStrings

It contains 'WIN32' directive as default value.

TPaxLanguage.DeclareVariables

If the property value is true, paxScript will require declaration of variables.
DeclareVariables: Boolean

TPaxLanguage.FileExt

File extension of file which contains a paxScript script.
FileExt: String

Default values: '.pp' - paxPaxcal, '.pb' - paxBasic, '.pc' - paxC, '.js' - paxJavaScript

TPaxLanguage.IncludeFileExt

Determines default file extension for included files.
IncludeFileExt: Strings

TPaxLanguage.LanguageName

Name of scripting language.
LanguageName: String

TPaxLanguage.LongStrLiterals

Returns 'true', if long string literals ''' ........ ''' are allowed.
LongStrLiterals: Boolean

Example

print '''

Hello,

World!

''';

TPaxLanguage.NamespaceAsModule

If the property has value 'true', paxScript will interpret the uses statement of paxPascal, the using statement of paxC and paxJavaScript, the imports statement of paxBasic like Object Pascal (Delphi) interprets the uses clause, i.e. as a list of units used by the program. If the value of the property is 'false', these statements are interpreted like C# interprets the using directive, i.e. as a list of namespaces used by the program.
NamespaceAsModule: Boolean

TPaxLanguage.JavaScriptOperators

If the proprerty value is 'true', paxScript will interpret arithmetical operators according to JavaScript semantics.
JavaScriptOperators: Boolean


Copyright © 1999-2006 VIRT Laboratory. All rights reserved.