Skip to main content



      Home
Home » Modeling » TMF (Xtext) » [xtext] testing the parser
[xtext] testing the parser [message #18423] Wed, 06 August 2008 11:23 Go to next message
Eclipse UserFriend
Hi

I've just started to take a look at this technology which looks really
cool, but I was wondering how to test the parser (I mean unit tests)...

thanks in advance
Lorenzo

--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net
Re: [xtext] testing the parser [message #19513 is a reply to message #18423] Fri, 08 August 2008 02:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sven.efftinge.de

public void testSimple() throws Exception {
InputStream in = new StringInputStream("instance (of) { my dsl }");
Node rootNode = new XtextParser(model).getRootNode();
EObject modelElement = rootNode.getModelElement();
assert(....)
}

Note that it is a good idea to use EMF's generator in order to have
static types instead of using EMF's refelection layer for assertions.

Sven


Lorenzo Bettini schrieb:
> Hi
>
> I've just started to take a look at this technology which looks really
> cool, but I was wondering how to test the parser (I mean unit tests)...
>
> thanks in advance
> Lorenzo
>
Re: [xtext] testing the parser [message #19693 is a reply to message #19513] Fri, 08 August 2008 05:32 Go to previous messageGo to next message
Eclipse UserFriend
By the way, should I post questions about xtext in the gmt newsgroup or
in the tmf newsgroup?
Re: [xtext] testing the parser [message #21336 is a reply to message #19693] Wed, 13 August 2008 04:48 Go to previous messageGo to next message
Eclipse UserFriend
Lorenzo Bettini schrieb:
> By the way, should I post questions about xtext in the gmt newsgroup or
> in the tmf newsgroup?
The TMF newsgroup is the right place. openArchitectureWare is moving out
of GMT. The Xtext part is resulting in TMF, other oAW parts in other
projects, e.g. M2T.
Re: [xtext] testing the parser [message #21361 is a reply to message #21336] Wed, 13 August 2008 09:05 Go to previous message
Eclipse UserFriend
Karsten Thoms wrote:
> Lorenzo Bettini schrieb:
>> By the way, should I post questions about xtext in the gmt newsgroup
>> or in the tmf newsgroup?
> The TMF newsgroup is the right place. openArchitectureWare is moving out
> of GMT. The Xtext part is resulting in TMF, other oAW parts in other
> projects, e.g. M2T.

Thanks

I had already started to post on that newsgroup after a while :-)

cheers
Lorenzo

--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net
Previous Topic:[xText] how to put oaw projects on CVS
Next Topic:oaW tutorial examples
Goto Forum:
  


Current Time: Mon May 12 00:44:33 EDT 2025

Powered by FUDForum. Page generated in 0.04792 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top