-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcheck_grammar.bat
42 lines (35 loc) · 1.45 KB
/
check_grammar.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
@ECHO OFF
rem ----------------------------------------------------------------------------
rem
rem check_grammar.bat: opencypher - checking grammar definition with BNFC.
rem
rem Copyright (c) 2012-17 K2 Informatics GmbH. All Rights Reserved.
rem
rem This file is provided to you under the Apache License,
rem Version 2.0 (the "License"); you may not use this file
rem except in compliance with the License. You may obtain
rem a copy of the License at
rem
rem http://www.apache.org/licenses/LICENSE-2.0
rem
rem Unless required by applicable law or agreed to in writing,
rem software distributed under the License is distributed on an
rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
rem KIND, either express or implied. See the License for the
rem specific language governing permissions and limitations
rem under the License.
rem
rem ----------------------------------------------------------------------------
> check_grammar.log (
ECHO ============================================================================
ECHO !time! Start run
ECHO ----------------------------------------------------------------------------
IF EXIST tmp\* (
DEL /Q tmp\*
)
bnfc -o tmp --haskell priv\bnf_converter\syparse.cf
happy -i tmp\ParSyparse.y
ECHO ----------------------------------------------------------------------------
ECHO !time! End run
ECHO ============================================================================
)