Skip to content

Tokenize input (ala java's scanner) and refactor commands to expect it #110

@asyncjake

Description

@asyncjake

There's certainly a good NPM repo out there for it, but it might be easy to build too? Only required functions, should be easy to find something open source, in-house would be nice too though

  • from(input) returns a tokenizer using input
  • hasNext() true if more tokens exist
  • getNext() returns the next string token or false
  • concatRemaining(separator = ' ') returns a string concatenated by separator
  • arrayRemaining() returns a copy of the remaining tokens

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementSlight upgrade but less than a feature

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions