Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 20d71a8

Browse files
Rename grammar files php -> js
1 parent e4ab641 commit 20d71a8

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

‎grammar/kmyacc.php.parser renamed to ‎grammar/kmyacc.js.parser

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ $meta #
77

88
/* This is an automatically GENERATED file, which should not be manually edited.
99
* Instead edit one of the following:
10-
* * the grammar file grammar/zend_language_parser.phpy
11-
* * the parser skeleton grammar/kymacc.php.parser
10+
* * the grammar file grammar/zend_language_parser.jsy
11+
* * the parser skeleton grammar/kymacc.js.parser
1212
* * the preprocessing script grammar/rebuildParser.php
1313
*
1414
* The skeleton for this parser was written by Moriyoshi Koizumi and is based on

‎grammar/rebuildParser.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

3-
const GRAMMAR_FILE = './zend_language_parser.phpy';
4-
const TMP_FILE = './tmp_parser.phpy';
5-
const RESULT_FILE = './tmp_parser.php';
3+
const GRAMMAR_FILE = './zend_language_parser.jsy';
4+
const TMP_FILE = './tmp_parser.jsy';
5+
const RESULT_FILE = './tmp_parser.js';
66

77
///////////////////////////////
88
/// Utility regex constants ///
@@ -37,7 +37,7 @@
3737
file_put_contents(TMP_FILE, $grammarCode);
3838

3939
echo 'Building parser. Output: "',
40-
trim(shell_exec('kmyacc -l -m kmyacc.php.parser ' . TMP_FILE . ' 2>&1')),
40+
trim(shell_exec('kmyacc -l -m kmyacc.js.parser ' . TMP_FILE . ' 2>&1')),
4141
'"', "\n";
4242

4343
rename(RESULT_FILE, '../src/parser/yyn.js');
File renamed without changes.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /