1 Star 1 Fork 4

Open Sim-One/osc2checker

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
check.bat 1.51 KB
一键复制 编辑 原始数据 按行查看 历史
maozuqiu 提交于 2022-03-24 19:31 . add osc2checker project
@ECHO OFF
SET current=%~dp0%
SET AntlrFilePath=%current%ThirdParty/antlr-4.9.1-complete.jar
SET CLASSPATH=.;%AntlrFilePath%;%CLASSPATH%
SET TEST_CURRENT_DIR=%CLASSPATH:.;=%
if "%TEST_CURRENT_DIR%" == "%CLASSPATH%" ( SET CLASSPATH=.;%CLASSPATH% )
SET antlr4=java org.antlr.v4.Tool
SET grun=java org.antlr.v4.gui.TestRig
set defaultOscFile=%current%/examples/cut_out.osc
set guiOption=-gui
set bSkip=0
if "%1" == "" (
echo USAGE: %0 [-s] [-h] OSC2FilePath
echo Examples:
echo gui: %0 %current%examples/cut_out.osc
echo silent - no gui: %0 -s %current%examples/cut_out.osc
echo help: %0 -h
set defaultOscFile=
set bSkip=1
) else (
for %%I in (%*) do (
set stringA=%%I
set subString=%stringA:~0,1%
if %%I == -s (
set guiOption=
) else if %%I == -h (
echo USAGE: %0 [-s] [-h] OSC2FilePath
echo Examples:
echo gui: %0 %current%examples/cut_out.osc
echo silent - no gui: %0 -s %current%examples/cut_out.osc
echo help: %0 -h
set defaultOscFile=
set bSkip=1
) else (
set defaultOscFile=%%I
)
)
)
if %bSkip% == 1 exit /B
SET parserPath=%current%osc2grammar\parser
%antlr4% -o %parserPath% %current%osc2grammar/OpenSCENARIO2.g4
PUSHD %parserPath%
javac OpenSCENARIO2*.java
@ECHO ON
%grun% OpenSCENARIO2 osc %guiOption% %defaultOscFile%
POPD
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/OpenSimOne/osc2checker.git
git@gitee.com:OpenSimOne/osc2checker.git
OpenSimOne
osc2checker
osc2checker
main

搜索帮助