{******************************************} { } { FastScript v1.9 } { JScript grammar } { } { (c) 2003-2007 by Alexander Tzyganenko, } { Fast Reports Inc } { } {******************************************} //VCL uses section {$IFNDEF FMX} unit fs_ijs; 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} TfsJScript = class(TComponent); implementation const JS_GRAMMAR = '' + '' + '<' + 'loop text=","><' + 'char text="!" add="op" addtext="not"/>' + '<' + 'char text="-" add="op"/><' + 'expression err="err2"/>' + '<' + 'forstmtitem/>'; initialization {$IFDEF DELPHI16} {$IFDEF FMX} StartClassGroup(TFmxObject); ActivateClassGroup(TFmxObject); GroupDescendentsWith(TfsJScript, TFmxObject); {$ELSE} StartClassGroup(TControl); ActivateClassGroup(TControl); GroupDescendentsWith(TfsJScript, TControl); {$ENDIF} {$ENDIF} fsRegisterLanguage('JScript', JS_GRAMMAR); end.