MCPcopy Create free account
hub / github.com/Noumena-Network/code / feed

Method feed

src/ink/termio/parser.ts:333–343  ·  view source on GitHub ↗

Feed input and get resulting actions

(input: string)

Source from the content-addressed store, hash-verified

331
332 /** Feed input and get resulting actions */
333 feed(input: string): Action[] {
334 const tokens = this.tokenizer.feed(input)
335 const actions: Action[] = []
336
337 for (const token of tokens) {
338 const tokenActions = this.processToken(token)
339 actions.push(...tokenActions)
340 }
341
342 return actions
343 }
344
345 private processToken(token: Token): Action[] {
346 switch (token.type) {

Calls 1

processTokenMethod · 0.95

Tested by

no test coverage detected