|
Pages: [1]
|
 |
|
Author
|
Topic: Parse problems. (Read 388 times)
|
|
HumbleNoob
|
I've been fed up with XML ever since I saw it. I mean it just seems so unneccesary verbose. So I thought up my own little markup language with practically the same support base. It goes like this: -tag attr value: content-, and am trying to setup a parse rule for this. For a simple flat element structure, I found this rule worked: element: [thru "-" copy tag to ":" ":" copy text to "-" "-"]
It seems changing it to this should work, but it doesn't: non-end: complement charset "-" element: [ "-" copy tag to ":" ":" [element | copy text [some non-end]] "-" ]
but it doesn't. Could anybody tell me why?
|
|
|
|
|
Logged
|
|
|
|
|
Gabriele
|
Hmm, it seems to work here, but notice that you are not allowing for any other content before or after an element, and you are only allowing one element.
|
|
|
|
|
Logged
|
|
|
|
|
|
Pages: [1]
|
|
|
 |