{******************************************} { } { FastScript v1.9 } { Basic grammar } { } { (c) 2003-2007 by Alexander Tzyganenko, } { Fast Reports Inc } { } {******************************************} //VCL uses section {$IFNDEF FMX} unit fs_ibasic; interface {$i fs.inc} uses SysUtils, Classes, fs_itools{$IFDEF DELPHI16}, Controls{$ENDIF}; {$ELSE} interface {$i fs.inc} uses System.SysUtils, System.Classes, FMX.fs_itools, FMX.Types; {$ENDIF} type {$i frxPlatformsAttribute.inc} TfsBasic = class(TComponent); implementation const BASIC_GRAMMAR = '' + '<' + '/keywords>' + '<' + 'string add="file" err="err1"/><' + 'char text="(" add="op"/><' + '/sequence>' + '' + '<' + 'keyword text="OR" add="op" addtext="or"/><' + 'char text="[" add="node"/>' + '<' + 'sequence><' + '/sequence><' + 'caseselector/><' + 'optional>' + '<' + 'keyword text="FINALLY"/>'; initialization {$IFDEF DELPHI16} {$IFDEF FMX} StartClassGroup(TFmxObject); ActivateClassGroup(TFmxObject); GroupDescendentsWith(TfsBasic, TFmxObject); {$ELSE} StartClassGroup(TControl); ActivateClassGroup(TControl); GroupDescendentsWith(TfsBasic, TControl); {$ENDIF} {$ENDIF} fsRegisterLanguage('BasicScript', BASIC_GRAMMAR); end.