Skip to content

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

@zorbyte

Description

@zorbyte

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.

Metadata

Metadata

Assignees

Labels

featNew feature or requestlib: parserParser librarypr: highHigh priorityqualityLinting and code quality

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions