Feed input and get resulting actions
(input: string)
| 285 | |
| 286 | /** Feed input and get resulting actions */ |
| 287 | feed(input: string): Action[] { |
| 288 | const tokens = this.tokenizer.feed(input) |
| 289 | const actions: Action[] = [] |
| 290 | |
| 291 | for (const token of tokens) { |
| 292 | const tokenActions = this.processToken(token) |
| 293 | actions.push(...tokenActions) |
| 294 | } |
| 295 | |
| 296 | return actions |
| 297 | } |
| 298 | |
| 299 | private processToken(token: Token): Action[] { |
| 300 | switch (token.type) { |
no test coverage detected