[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [computer-go] SGF parsers
-----Original Message-----
Mark Boon tesujisoftware at gmail.comSent: Mon Dec 13 18:18:14 PST 2004
To: computer-go
Subject: Re: [computer-go] SGF parsers
...
What I'm looking for is a parser that will turn SGF into DOM
...
Hello Mark,
I just wrote a ANTLR grammar for SGF that basically just does that. The
grammar can be used to generate a Java parser/lexer but ANTLR also allows
output to C++. All complicated things are left outside the grammar (like
duplicate attributes, parsing property values) but the core functionality
of creating a tree of the underlying data is working.
You can find the grammar and two little demo-applications / screenshots at:
http://page.mi.fu-berlin.de/~oezbek/cgi-bin/view/Go/ANTLRGrammarSGF
Cheers,
Christopher
_______________________________________________
computer-go mailing list
computer-go@xxxxxxxxxxxxxxxxx
http://www.computer-go.org/mailman/listinfo/computer-go/