add notes

This commit is contained in:
Arpad Ryszka 2017-10-27 16:04:09 +02:00
parent 35a42d7dba
commit 7f243c6a30

View File

@ -193,7 +193,10 @@ func (p *choiceParser) parse(t Trace, c *context) {
foundMatch = false
elementIndex = 0
// TODO: avoid double parsing by setting first-from-store in the context
// TODO:
// - avoid double parsing by setting first-from-store in the context, prepare in advance to
// know whether it can be it's own item
// - it is also important to figure why disabling the failed elements breaks the parsing
for elementIndex < len(p.elements) {
p.elements[elementIndex].parse(t, c)