learn-teochew / parsetc

Parse and convert between different Teochew romanization systems
https://learn-teochew.github.io/parsetc/
MIT License
0 stars 1 forks source link

Represent null initial with square bracket 'maybe' grouping #7

Closed kbseah closed 6 months ago

kbseah commented 6 months ago

Previously unclear how to represent null initial because terminals cannot be a null

We could use the square bracket groupings in lark v1 [ item item ] which return None if zero occurrences found when parsing

However have to troubleshoot how the None objects behave in the transliteration step.