SDF file parsing

H

helix

Guest
Hello to all,

i am working on a parser for SDF (standard delay format) files to
analyze them.
I'm using the ANTLR parser and since i found no grammar file for SDF on
the Net i started to write my own...
Because i'm really stuck with that now, i want to ask if someone has
experience with that, or already has got a finished grammar :)

regard,
Reinhard
 
"helix" <jamesb@gmx.at> writes:

Because i'm really stuck with that now, i want to ask if someone has
experience with that, or already has got a finished grammar :)
Parsing SDF is like parsing Lisp.

Where are you stuck?

Reading an SDF file in Common Lisp is almostš as easy as :

(with-open-file (is (make-pathname :directory ':)absolute "tmp")
:name "sample" :type "sdf")
:direction :input)
(read is))


š The double colons in the file will cause the lisp reader to think
that it's a package and barf since there is no such package

Petter
--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
 
Definitly the best solution.
The poor non-lisp hackers can parse it like EDIF. Much more
hairy than in Lisp but should work too.

Regards
AHz

PS:
cu @ c.l.l

Petter Gustad wrote:
"helix" <jamesb@gmx.at> writes:


Because i'm really stuck with that now, i want to ask if someone has
experience with that, or already has got a finished grammar :)


Parsing SDF is like parsing Lisp.

Where are you stuck?

Reading an SDF file in Common Lisp is almostš as easy as :

(with-open-file (is (make-pathname :directory ':)absolute "tmp")
:name "sample" :type "sdf")
:direction :input)
(read is))


š The double colons in the file will cause the lisp reader to think
that it's a package and barf since there is no such package

Petter
 

Welcome to EDABoard.com

Sponsor

Back
Top