Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(lib/parser): An argument parser. #5

Open
4 of 14 tasks
zorbyte opened this issue May 30, 2021 · 0 comments
Open
4 of 14 tasks

feat(lib/parser): An argument parser. #5

zorbyte opened this issue May 30, 2021 · 0 comments
Assignees
Labels
feat New feature or request lib: parser Parser library pr: high High priority quality Linting and code quality

Comments

@zorbyte
Copy link
Collaborator

zorbyte commented May 30, 2021

The argument parser currently passes through single words and that is all it does.

To get it complete, the following must be done:

  • Fix existing bugs in the keyed parameters, there is a .length error which can be found in the server error logs.
  • Needs a desperate cleanup.
  • Add more types of parsers:
    • User
    • Fixed string switch (statically positioned)
    • Roles
    • Permission Groups
    • Channels
    • Emojis
    • Colours
    • Snowflake (ID string)
  • Produce sentence arguments by reading the content progressively and for each word running the next parameter
    until the result is not undefined, which would indicate that the next parameter has started.
  • Separate the error generator so that it can be easily called, the error generator produces errors like the following:
    thing error thing
          ^
    an error of some description occurred
    
  • Check if required arguments were missed and throw an error.
@zorbyte zorbyte self-assigned this May 30, 2021
@zorbyte zorbyte changed the title chore(lib/parser): Finish the argument parser. feat(lib/parser): An argument parser. Jun 3, 2021
@zorbyte zorbyte added pr: high High priority feat New feature or request lib: parser Parser library quality Linting and code quality labels Jun 4, 2021
@zorbyte zorbyte added this to the MVP 1 (v0.1.0) milestone Jun 4, 2021
@zorbyte zorbyte pinned this issue Jun 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request lib: parser Parser library pr: high High priority quality Linting and code quality
Projects
None yet
Development

No branches or pull requests

1 participant