Skip to content

Commit

Permalink
clean up backquotes in the master code chunks' files (used by __patch…
Browse files Browse the repository at this point in the history
…_parser_kernel tool)
  • Loading branch information
GerHobbelt committed Dec 23, 2017
1 parent 8ca92ef commit 9e40307
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/jison-parser-API-section1.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ var API = {
//
// The produced list may contain token or token set descriptions instead of the tokens
// themselves to help turning this output into something that easier to read by humans
// unless \`do_not_describe\` parameter is set, in which case a list of the raw, *numeric*,
// unless `do_not_describe` parameter is set, in which case a list of the raw, *numeric*,
// expected terminals and nonterminals is produced.
//
// The returned list (array) will not contain any duplicate entries.
Expand Down
6 changes: 3 additions & 3 deletions lib/jison-parser-commonJsMain-function.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

function (args) {
// When the parser comes with its own \`main\` function, then use that one:
// When the parser comes with its own `main` function, then use that one:
if (typeof exports.parser.main === 'function') {
return exports.parser.main(args);
}
Expand All @@ -11,12 +11,12 @@ function (args) {
}
var source = fs.readFileSync(path.normalize(args[1]), 'utf8');
var dst = exports.parser.parse(source);
console.log('parser output:\\n\\n', {
console.log('parser output:\n\n', {
type: typeof dst,
value: dst
});
try {
console.log("\\n\\nor as JSON:\\n", JSON.stringify(dst, null, 2));
console.log("\n\nor as JSON:\n", JSON.stringify(dst, null, 2));
} catch (e) { /* ignore crashes; output MAY not be serializable! We are a generic bit of code, after all... */ }
var rv = 0;
if (typeof dst === 'number' || typeof dst === 'boolean') {
Expand Down
2 changes: 1 addition & 1 deletion lib/jison-parser-debugTrace-function.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function debug_trace() {
print.apply(null, arguments);
} else if (typeof console !== 'undefined' && console.log) {
var args = Array.prototype.slice.call(arguments, 0);
args.unshift(''); // prevent \`%.\` printf-style expansions; see https://nodejs.org/api/console.html#console_console_log_data_args
args.unshift(''); // prevent `%.` printf-style expansions; see https://nodejs.org/api/console.html#console_console_log_data_args
console.log.apply(null, args);
}
}

0 comments on commit 9e40307

Please sign in to comment.