xdi message
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
| [List Home]
Subject: Full Graph Model ABNF Test
- From: Markus Sabadello <markus.sabadello@xdi.org>
- To: Drummond Reed <drummond@connect.me>
- Date: Sat, 23 Feb 2013 18:44:09 +0100
For example, I tried to run it on this:
=markus$!(+name)/!/(data:,MarkusSabadello)
... and I ran into 2 problems.
First problem:
According to the ABNF, $!(+name) is a valid entity-singleton.
This doesn't have a big effect on the overall parsing process, but it's not correct.
Second problem:
The parser doesn't actually recognize the whole string as a valid XDI statement.
Why? Let's look at the ABNF rule that has to be satisfied:
literal = [ context ] literal-context "/!/" data-xref
Now what happens is that the parser thinks that the context part of this is matched by =markus$!(+name), which leaves nothing to match the literal-context, therefore, parsing fails.
Instead, what should happen is that the context part is matched by only =markus, and that the literal-context part is matched by $!(+name).
But for some reason the parser isn't able to figure that out.
I know this has something to do with the parsing algorithm, with left recursion, and with backtracking, but I'd have to read up on these concepts to fully understand the problem.
I also found this, very interesting:
Markus
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
| [List Home]