feat: recomplie plsql parser

This commit is contained in:
hayden 2023-11-29 10:38:03 +08:00 committed by Hayden
parent 4be3640219
commit a98f7f938a
3 changed files with 9507 additions and 9506 deletions

View File

@ -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