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

Rework syntax to allow reversible sides. #21

Closed
alanxoc3 opened this issue Jul 11, 2020 · 3 comments
Closed

Rework syntax to allow reversible sides. #21

alanxoc3 opened this issue Jul 11, 2020 · 3 comments

Comments

@alanxoc3
Copy link
Owner

Maybe a @ could mean the answer is reversible, while a % means the answer is irreversible. Or vice-versa. Maybe not a %. I'll have to brainstorm this more.

@alanxoc3 alanxoc3 changed the title Consider extra syntax for reversible sides. Rework syntax to allow reversible sides. Jul 16, 2020
@alanxoc3
Copy link
Owner Author

alanxoc3 commented Jul 16, 2020

I have an idea now.

@> concard : a card in the concards program | these are very cool <@

Would expand to two cards:

@> concard
 | a card in the concards program
 | these are very cool

@> a card in the concards program
 | concard
<@

Notice how I reworked the syntax to not only allow reversible sides, but also it looks cleaner. I figured out an escape character strategy too. Just prepend a \ to the keywords:

\@>
\<@
\|
\:

@alanxoc3
Copy link
Owner Author

alanxoc3 commented Jul 16, 2020

Ok. This case is only to add the ":" reverse syntax. This is not to change from "@" to "|" and it is not to implement the escape character system.

This was referenced Jul 16, 2020
@alanxoc3
Copy link
Owner Author

The two prerequisites to this case are complete. I'm working on the reversible syntax now :D.

alanxoc3 added a commit that referenced this issue Jul 19, 2020
The "--sides" option was a bad idea to begin with I guess. Not every
flashcard side makes sense to be reversible. It's completely dependent
on the side. The "--sides" option was just giving me too much garbage.

Next commit will start on the ":" syntax for multiple sides.
alanxoc3 added a commit that referenced this issue Jul 19, 2020
alanxoc3 added a commit that referenced this issue Jul 19, 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

No branches or pull requests

1 participant