From: christopher donaldson To: designCPN@daimi.au.dk Date: Fri, 11 Jul 2003 06:00:01 -0700 (PDT) Subject: Re: (dCPN) Parsing CPN ML to generate Java classes Hi I have implemented a CPM ML parser in Java and a package to convert xml files from design/CPN to Java classes . You can contact me from more information on the details. regards, chris Yongsheng Yang wrote: Hello , I am a student in University of Ottawa, and I am doing some research on protocol. The service specification is written by Design/CPN, and the protocol will be implemented by Java. So I want to export the XML file from Design/CPN and use XLST to get the place and function information. But the data of Colored Petrinets such as data structure (colors) of tokens, functions and expressions are witen in CPN-ML texts not XML format based. And this part is exported as texts directory into the element of CPN XML data format, like : color U = with p | q; : fun Function(a,b) = val x = ... : end; : So a parser of CPN-ML and the translator from CPN-ML to Java class files is necessary, to do this translation automatically. I am looking for any idea on how to achieve it. -- Best regards, Yongsheng Yang mailto:yyang@site.uottawa.ca --- [[ Post messages and summary of replies: designCPN@daimi.au.dk ]] [[ To (un)subscribe, send "help" to: Majordomo@daimi.au.dk ]] [[ The moderator's address: designCPN-owner@daimi.au.dk ]] [[ World Wide Web URL: http://www.daimi.au.dk/designCPN/email/ ]]