| masm | v0|d: parse-points function parses things like "23,2 234,23 23,34" v0|d: This parsing method can be very fast, but there are simpler ways to do parsing. If the syntax is complicated, it can be very verbose. |
| v0|d | i understood, what is sl: package? |
| masm | It is an internal package. with-gensyms is AKA with-unique-names, I believe. (:exactly x something) will only match something if it appears x times. This is not in the paper. |
| v0|d | could you provide parse-points |
| masm | v0|d: I have a series of examples that I made to test the parser, by I cannot find them. |
| v0|d | ah ok. :( |
| masm | http://paste.lisp.org/display/37818 |
| v0|d | masm: that doesnt have parse-points afaisee. |
| masm | Anyway, It is very simple technique. I use all of the parser features in parse-style and parse-points. v0|d: It is the last function in the paste. |
| v0|d | last one is parser-string, am i wrong? anyway i'll look into details thanks for code, it would be great if you could send me tests later if you can find them. thnx:) |
| masm | v0|d: follow the link http://paste.lisp.org/display/37818 |
| Xach | ddddddrewc! |
| drewc | xachb! |
| masm | v0|d: There are two pastes. v0|d: See it? |
| v0|d | masm: great, got it. |
| drewc | Xach: just thought i'd come by and thank brucio .. lol |
| Xach | i don't think i've seen brucio on irc, but maybe he reads logs somewhere sadly, arc isn't 100% internet secure yet |
| v0|d | masm: CL-USER> (parse-points "23,2 234,23 23,34") => ((23 . 2) (234 . 23) (23 . 34)) :) |
| masm | v0|d: Yep. I did this basic parser to load a svg file so I can play with McCLIM. If you want to do some serious (complex) parsing, I suggest that you either seriously extend meta or find some other scanner/parser. |
| v0|d | i'm inspecting how meta can be extended to work on a defined language |
| masm | v0|d: One other thing. The parser from Baker's paper can also be used to parse sexps. My implementation cannot be used that way because I use sexps to define the parser. |
| v0|d | right, i don't need it either, |
| drewc | Xach: that link to 'SubX' is great.. we have not had someone try to fix lisp in a while. |
| slyrus_ | morning |
| antifuchs | drewc: ...not counting graham (: |
| cods | Xach: In salza-0.7.3/examples/png.lisp, the write-row function is missing (there is only an open parenthesis) |
| Xach | oh, drat |
| drewc | antifuchs: it's all his fault after all. how come our only popular evangelist is also the one who convinces people that lisp needs 'fixing'. sigh. |
| antifuchs | drewc: we obviously need more reborn lispian preachers (: |
| drewc | i'm willing to bet that a well written 'paul graham was wrong' about lisp post would hit #1 on reddit pretty fast... especially when it's a 'lisp is good, arc is not' post. |
| action | drewc sharpens pencils... |
| drewc | sharpens pencils... ...and gets back to work .. i have no time for this.... |