20 Aug
2015
20 Aug
'15
2:36 p.m.
On 20/08/2015 13:11, Stavros Konstantaras wrote:
What my prototype does now is extract the attributes and values by using Regular Expressions
rpsl is afaik a chomsky type 1 or 2 grammar and regular expressions are a chomsky type 3 grammar. Not wanting to rain on anyone's parade, you cannot parse a type 1 or type 2 chomsky grammar with a type 3 grammar. It's a bit like this, except worse:
http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtm...
A partial solution is obviously possible, however it will only ever be an approximation. Nick