First upload version 0.0.1
This commit is contained in:
17
node_modules/node-llama-cpp/dist/utils/gbnfJson/terminals/GbnfBooleanValue.js
generated
vendored
Normal file
17
node_modules/node-llama-cpp/dist/utils/gbnfJson/terminals/GbnfBooleanValue.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
import { GbnfTerminal } from "../GbnfTerminal.js";
|
||||
export class GbnfBooleanValue extends GbnfTerminal {
|
||||
value;
|
||||
constructor(value) {
|
||||
super();
|
||||
this.value = value;
|
||||
}
|
||||
getGrammar() {
|
||||
if (this.value)
|
||||
return '"true"';
|
||||
return '"false"';
|
||||
}
|
||||
resolve() {
|
||||
return this.getGrammar();
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=GbnfBooleanValue.js.map
|
||||
Reference in New Issue
Block a user