Feed input and get resulting actions
(input: string)
| 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) { |
no test coverage detected