@forbespro/lead-agent
Version:
Lead Chat Agent React Component
34 lines (33 loc) • 888 B
JavaScript
import { factorySpace as l } from "./index161.js";
import { blankLine as a } from "./index162.js";
import { content as e } from "./index163.js";
const d = {
tokenize: m
};
function m(n) {
const o = this, i = n.attempt(
// Try to parse a blank line.
a,
u,
// Try to parse initial flow (essentially, only code).
n.attempt(this.parser.constructs.flowInitial, r, l(n, n.attempt(this.parser.constructs.flow, r, n.attempt(e, r)), "linePrefix"))
);
return i;
function u(t) {
if (t === null) {
n.consume(t);
return;
}
return n.enter("lineEndingBlank"), n.consume(t), n.exit("lineEndingBlank"), o.currentConstruct = void 0, i;
}
function r(t) {
if (t === null) {
n.consume(t);
return;
}
return n.enter("lineEnding"), n.consume(t), n.exit("lineEnding"), o.currentConstruct = void 0, i;
}
}
export {
d as flow
};