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

Refactor add command parser #52

Merged

Conversation

Ziyang-98
Copy link

I refactored AddCommandParser, so now just need to refactor AddCommand to integrate with the parser. I have also refactored ParserUtils, ParserUtils test and added a new class Category under parser which is to determine whether an entry to be added is a revenue or an expense. Also, I moved all the parser util classes to a util package under parser package. Lastly, I deleted the addressnbook commands except Add, Delete and Help Command.

Additional Notes: While the AddCommandParser checks and create a Revenue/Expense based on category, the AddCommand should check whether the entry is of type Revenue/Expense so that it can be added to the correct list respectively.

…Test, add Category, move parser utils method to package "util" in parser, delete addressbook commands except add, delete and help
Copy link

@jordanyoong jordanyoong left a comment

Choose a reason for hiding this comment

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

Looks good to me

Copy link

@jordanyoong jordanyoong left a comment

Choose a reason for hiding this comment

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

Looks good

Copy link

@lettuceman4 lettuceman4 left a comment

Choose a reason for hiding this comment

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

LGTM

@jordanyoong jordanyoong merged commit 39dd467 into AY2021S1-CS2103T-T13-4:master Oct 10, 2020
Copy link

@nicholas-gcc nicholas-gcc left a comment

Choose a reason for hiding this comment

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

LGTM!

@Ziyang-98 Ziyang-98 added this to the v1.2 milestone Oct 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants