Skip to content
This repository was archived by the owner on Nov 26, 2025. It is now read-only.

adds register operation to Parser#58

Open
Miiike89 wants to merge 1 commit intoaxiacore:masterfrom
Miiike89:feature/new-opertaion-registration
Open

adds register operation to Parser#58
Miiike89 wants to merge 1 commit intoaxiacore:masterfrom
Miiike89:feature/new-opertaion-registration

Conversation

@Miiike89
Copy link

- enables the User to register new operations, which can be parsed by Parser

	- enables the User to register new operations, which can be parsed by Parser
@cansadadeserfeliz
Copy link
Contributor

@Miiike89 please, add some unit tests


def register_operation(self, token, priority, index, func):

if token not in self.ops1 or token not in self.ops1:
Copy link

@jeffreyscottgraham jeffreyscottgraham Jun 19, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

um.... this seems wrong... same check of ops1 twice? And not checking ops ?
And then adding it to yet another called ops2?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, you guys are right. It worked for my simple cases, but indeed there is a lack of errorhandling and unittests. I'am sorry, about that.
Unfortunately I'am currently quite swamped at work and won´t be able to fix this right away. You guys have to give me some time, please.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants