ilo-token / ilo-token.github.io

A rule-based Toki Pona to English translator; Currently work in progress!
https://ilo-token.github.io/
MIT License
7 stars 0 forks source link

AST filter for "a" #27

Closed neverRare closed 6 months ago

neverRare commented 6 months ago

A parser for "a" has been made. Maybe we need to put limits on where it can be used?

neverRare commented 6 months ago

There are definitely places where filters are needed.

Consider the following: "toki a!". Either "a" emphasizes just "toki" or the whole sentence, which is also "toki". Filters are definitely necessary here.

neverRare commented 6 months ago

Parsing "toki a" results in 4 AST's! This is bad, it should be just one.