Help in using grako for parsing

2014-10-17 Thread varun7rs
Hello, I am trying to parse a file which ahs the below content. I tried using the split function but that wasn't a good programming practice. I had to use it repeatedly to split the line and then read my data. I thought of doing it in a better way which is when I came across grako. But I have

Re: Help in using grako for parsing

2014-10-17 Thread Peter Otten
varun...@gmail.com wrote: Hello, I am trying to parse a file which ahs the below content. I tried using the split function but that wasn't a good programming practice. I had to use it repeatedly to split the line and then read my data. I thought of doing it in a better way which is when I

Re: Help in using grako for parsing

2014-10-17 Thread varun7rs
I'm really sorry for not being clear. I shall explain things in detail from now onwards. Really sorry. The output I would like is RF schema=RF.xsd version= VNE requests request ID='0' virtualnodes virtualnode PhysicalNode_ID='1' Request_ID='0' VirtualNode_ID='0'/virtualnode PhysicalNode_ID='5'

Re: Help in using grako for parsing

2014-10-17 Thread varun7rs
Oh damn, it turned out really crappy. I could not format it properly -- https://mail.python.org/mailman/listinfo/python-list