osc2checker is a grammar check tool for ASAM OpenSCENARIO 2 scenario files. It's implemented by ANTLR4 with ASAM OpenSCENARIO 2 EBNF PRC version.
Note: It is based on the current public review draft of the language - ASAM OpenSCENARIO V2.0.0-PRC.1, which is non-final.
Repository: https://github.com/51WORLD/osc2checker
Install JDK of Java (version 1.7 or higher)
check.bat yourOSCFileAbsolutePath
example:
check.bat %cd%\examples\cut_out.osc
check.sh yourOSCFileAbsolutePath
example:
check.sh $PWD/examples/cut_out.osc
or
sh check.sh $PWD/examples/cut_out.osc
Copyright (C) 2018 - 2022 Beijing 51WORLD Digital Twin Technology Co., Ltd. , and/or its licensors. All rights reserved.