feat: recomplie plsql parser
This commit is contained in:
parent
4be3640219
commit
a98f7f938a
@ -16,7 +16,7 @@ const baseCmd = 'antlr4ts -visitor -listener -Xexact-output-dir -o';
|
|||||||
function compile(language) {
|
function compile(language) {
|
||||||
const cmd = `${baseCmd} ${outputPath}/${language} ${grammarsPath}/${language}/*.g4`;
|
const cmd = `${baseCmd} ${outputPath}/${language} ${grammarsPath}/${language}/*.g4`;
|
||||||
|
|
||||||
if (fs.existsSync(`${outputPath}/${language}`)) {
|
if (language !== 'plsql' && fs.existsSync(`${outputPath}/${language}`)) {
|
||||||
console.info(chalk.green(`\nRemoving:`, chalk.gray(`${outputPath}/${language}/*`)));
|
console.info(chalk.green(`\nRemoving:`, chalk.gray(`${outputPath}/${language}/*`)));
|
||||||
fs.rmSync(`${outputPath}/${language}`, { recursive: true });
|
fs.rmSync(`${outputPath}/${language}`, { recursive: true });
|
||||||
}
|
}
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user