Commit 113d92b9 authored by Miklos Magyari's avatar Miklos Magyari
Browse files

Added Windows cmd script for compiling .g4 files


Signed-off-by: Miklos Magyari's avatarMiklos Magyari <miklos.magyari@sigmatechnology.se>
parent 85c79070
@rem ###############################################################################
@rem # Copyright (c) 2000-2021 Ericsson Telecom AB
@rem # All rights reserved. This program and the accompanying materials
@rem # are made available under the terms of the Eclipse Public License v2.0
@rem # which accompanies this distribution, and is available at
@rem # https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
@rem #
@rem # Contributors:
@rem # Lovassy, Arpad
@rem # Magyari, Miklos
@rem #
@rem ###############################################################################
@set CURDIR=%cd%
@set DIR=%~dp0
@set WORKSPACE_PATH=%DIR%\..
@set ANTLR=-cp %HOMEDRIVE%%HOMEPATH%\lib\\antlr-4.3-complete.jar org.antlr.v4.Tool
@cd %WORKSPACE_PATH%\org.eclipse.titan.runtime\src\org\eclipse\titan\runtime\core\cfgparser\
@java %ANTLR% RuntimeCfgLexer.g4 -no-listener -no-visitor -encoding UTF-8 -package org.eclipse.titan.runtime.core.cfgparser
@java %ANTLR% RuntimeCfgParser.g4 -no-listener -no-visitor -encoding UTF-8 -package org.eclipse.titan.runtime.core.cfgparser
@java %ANTLR% RuntimeCfgPreParser.g4 -no-listener -no-visitor -encoding UTF-8 -package org.eclipse.titan.runtime.core.cfgparser
@REM Titan Common
@echo Compiling common
@cd %WORKSPACE_PATH%\org.eclipse.titan.common\src\org\eclipse\titan\common\parsers\cfg\
@java %ANTLR% CfgLexer.g4 -no-listener -no-visitor -encoding UTF-8 -package org.eclipse.titan.common.parsers.cfg
@java %ANTLR% CfgParser.g4 -no-listener -no-visitor -encoding UTF-8 -package org.eclipse.titan.common.parsers.cfg
@rem Titan Designer
@REM ASN1
@echo Compiling ASN1
@cd %WORKSPACE_PATH%\org.eclipse.titan.designer\src\org\eclipse\titan\designer\parsers\asn1parser\
@java %ANTLR% Asn1Lexer.g4 -no-listener -no-visitor -encoding UTF-8 -package org.eclipse.titan.designer.parsers.asn1parser
@java %ANTLR% Asn1Parser.g4 -no-listener -no-visitor -encoding UTF-8 -package org.eclipse.titan.designer.parsers.asn1parser
@REM TTCN3
@echo Compiling ttcn3
@cd %WORKSPACE_PATH%\org.eclipse.titan.designer\src\org\eclipse\titan\designer\parsers\ttcn3parser\
@java %ANTLR% PreprocessorDirectiveLexer.g4 -no-listener -no-visitor -encoding UTF-8 -package org.eclipse.titan.designer.parsers.ttcn3parser
@java %ANTLR% PreprocessorDirectiveParser.g4 -no-listener -no-visitor -encoding UTF-8 -package org.eclipse.titan.designer.parsers.ttcn3parser
@java %ANTLR% Ttcn3Lexer.g4 -no-listener -no-visitor -encoding UTF-8 -package org.eclipse.titan.designer.parsers.ttcn3parser
@java %ANTLR% Ttcn3KeywordlessLexer.g4 -no-listener -no-visitor -encoding UTF-8 -package org.eclipse.titan.designer.parsers.ttcn3parser
@java %ANTLR% Ttcn3CharstringLexer.g4 -no-listener -no-visitor -encoding UTF-8 -package org.eclipse.titan.designer.parsers.ttcn3parser
@java %ANTLR% Ttcn3Parser.g4 -no-listener -no-visitor -encoding UTF-8 -package org.eclipse.titan.designer.parsers.ttcn3parser
@java %ANTLR% Ttcn3Reparser.g4 -no-listener -no-visitor -encoding UTF-8 -package org.eclipse.titan.designer.parsers.ttcn3parser
@java %ANTLR% PatternStringLexer.g4 -no-listener -no-visitor -encoding UTF-8 -package org.eclipse.titan.designer.parsers.ttcn3parser
@REM Extension attribute
@echo Copiling ext attr
@cd %WORKSPACE_PATH%\org.eclipse.titan.designer\src\org\eclipse\titan\designer\parsers\extensionattributeparser\
@java %ANTLR% ExtensionAttributeLexer.g4 -no-listener -no-visitor -encoding UTF-8 -package org.eclipse.titan.designer.parsers.extensionattributeparser
@java %ANTLR% ExtensionAttributeParser.g4 -no-listener -no-visitor -encoding UTF-8 -package org.eclipse.titan.designer.parsers.extensionattributeparser
@REM Variant attribute
@echo Compiling var attr
@cd %WORKSPACE_PATH%\org.eclipse.titan.designer\src\org\eclipse\titan\designer\parsers\variantattributeparser\
@java %ANTLR% VariantAttributeLexer.g4 -no-listener -no-visitor -encoding UTF-8 -package org.eclipse.titan.designer.parsers.variantattributeparser
@java %ANTLR% VariantAttributeParser.g4 -no-listener -no-visitor -encoding UTF-8 -package org.eclipse.titan.designer.parsers.variantattributeparser
@echo Generating ...LexerLogUtil.java files from ...Lexer.java files for resolving token names (OPTIONAL)
@cd %DIR%
@perl antlr4_generate_lexerlogutil.pl
@cd %CURDIR%
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment