| Server IP : 101.53.144.229 / Your IP : 216.73.216.104 Web Server : Apache System : Linux host.gdigitalindia.in 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : digitalshiksha ( 1179) PHP Version : 5.6.40 Disable Function : eval,show_source,system,shell_exec,escapeshellarg,escapeshellcmd,proc_close,proc_open,ini_alter,dl,show_source,curl_multi_exechellcmd, ini_restore,apache_get_modules,get_cfg_var,passthru, exec ,proc_get_status,fpassthru,c999_buff_prepare,c999_sess_put,c99_buff_prepare,c99_sess_put,proc_close,ini_alter,dl,symlink,link,proc_close,ini_alter,dl,symlink,link,mail MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/doc/re2c-0.14.3/lessons/001_upn_calculator/windows/ |
Upload File : |
@echo OFF goto Start rem BuildAndRun.bat 06-Apr-15 lda rem Assumes re2c.exe findable with PATH or . or .. or ..\.. or $(RE2C_HOME) rem Assumes cl.exe findable with PATH or VcToolKit2003 installed :Start if exist %RE2C_HOME%\re2c.exe goto ProceedWithGenerate if exist .\re2c.exe set RE2C_HOME=. if exist ..\re2c.exe set RE2C_HOME=.. if exist ..\..\re2c.exe set RE2C_HOME=..\.. if exist ..\..\..\re2c.exe set RE2C_HOME=..\..\.. if exist ..\..\..\Release\re2c.exe set RE2C_HOME=..\..\..\Release if exist ..\..\..\Release-2005\re2c.exe set RE2C_HOME=..\..\..\Release-2005 if not exist %RE2C_HOME%\re2c.exe goto ReportSetupError :ProceedWithGenerate set BASE_FILE_NAME=main %RE2C_HOME%\re2c -b -o%BASE_FILE_NAME%.c %BASE_FILE_NAME%.re rem echo ErrorLevel is set to %ERRORLEVEL% after re2c IF ERRORLEVEL 1 goto ReportRe2cError rem (to test) set path= cl 1>nul 2>nul IF ERRORLEVEL 1 goto AttemptToSetupCompiler goto ProceedWithCompile :AttemptToSetupCompiler echo ErrorLevel is set to %ERRORLEVEL% after blank cl command line call %VCToolkitInstallDir%\vcvars32.bat 1>nul 2>nul cl 1>nul 2>nul IF ERRORLEVEL 1 goto ReportClError :ProceedWithCompile cl -O2 /DNDEBUG /D_CONSOLE /DWIN32 %BASE_FILE_NAME%.c rem echo ErrorLevel is set to %ERRORLEVEL% after cl IF ERRORLEVEL 1 goto ReportClError %BASE_FILE_NAME% goto AllDone :ReportSetupError echo re2c.exe not found in ., .., ..\.., ..\..\.., ..\..\..\Release echo or ..\..\..\Release-2005 Environment variable RE2C_HOME invalid or not set? :ReportClError :ReportRe2cError :AllDone pause