[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lojban] Lojban parse tree to XML



coi rodo

I've wrapped some Java code around Robin's PEG parser, to convert the 
Lojban parse tree output into an XML representation.
It is repackaged as a JAR file and requires Java 1.4 or higher already 
installed on your machine.

The input is any Lojban text from stdin, the output goes to stdout as an 
XML of the parse tree.
It works on both Unix and Windows platforms.
Here is an example usage:

cat example-lojban.txt | java -jar loj2xml.jar > output-file.xml

(On Windows, replace "cat" with "type".)

If you know how to work with XML, you can run the output through an XSL 
stylesheet.
I will eventually make some stylesheets to do useful things with the XML 
output, such as
create a nice HTML page of diagrammed sentences.

The XML output is not pretty-printed, but (with the input I've tested so 
far) it is well-formed.

Regards,
Brian



------------------------ Yahoo! Groups Sponsor --------------------~--> 
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/TzSHvD/SOnJAA/79vVAA/GSaulB/TM
--------------------------------------------------------------------~-> 

To unsubscribe, send mail to lojban-unsubscribe@onelist.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/lojban/

<*> To unsubscribe from this group, send an email to:
    lojban-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Attachment: loj2xml.jar
Description: application/java-archive