[il-antlr-interest: 21407] Re: [antlr-interest] ANTLR build step problem (using MS Visual Studio 2008, C#)

2009-01-19 Thread Mike Pagel
Hey Ed, I've seen this behavior with other command line tools as well (e.g. MPLEX and MPPG) and somewhere read about why this is the case. Tried to find the link but without luck. But this is not an ANTLR issue, but an artifact of how the build step was integrated or how VS does some kind of c

[il-antlr-interest: 21184] [antlr-interest] Syntax highlighting considerations

2009-01-05 Thread Mike Pagel
Hi, I am trying to put syntax highlighting for string templates into Visual Studio in form of what in the MS world is called a language service. The default framework used there ("Babel") relies solely on the tokens returned by a lexer to determine colorization. In general I find this limitin

[il-antlr-interest: 21175] [antlr-interest] Iterative parsing?

2009-01-04 Thread Mike Pagel
Hi, can parsing be done on pieces of input, e.g. line-by-line or to re-parse only changed lines of a code file? If yes, how do I tell ANTLR the "current state", where parsing needs to be picked up? Thanks, Mike --~--~-~--~~~---~--~~ You received this message

[il-antlr-interest: 21046] Re: [antlr-interest] Organization of complex template structures

2008-12-21 Thread Mike Pagel
Hey Loring, maybe I missed a feature of ST so far. You said: > 4.) A StringTemplateGroup can load multiple template groups, so any large > group can be split up into several smaller groups and all can be loaded into > a single StringTemplateGroup. [I have not had reason to do this; it seems

[il-antlr-interest: 21043] Re: [antlr-interest] Organization of complex template structures

2008-12-21 Thread Mike Pagel
he actual template instance. > > Something along the lines of: > > bag = new StringTemplateGroupBag() > bag.put( "ships", new StringTemplateGroup( ... ) ); > bag.put( "html", new StringTemplateGroup( ... ) ); > > client = new StringTemplateGroup( ...

[il-antlr-interest: 21041] Re: [antlr-interest] Organization of complex template structures

2008-12-21 Thread Mike Pagel
nce to allow > factoring. Almost always, the invoked template is local to the > template group (not declared in the interface). Such invocations tend > to be uncommon. > > --Loring > > > > > - Original Message > >> From: Mike Pagel >> To:

[il-antlr-interest: 21036] [antlr-interest] Organization of complex template structures

2008-12-20 Thread Mike Pagel
Hi there, I am wondering how to best go about structuring complex sets of string templates. As I understand the current mechanisms, a template group is pretty much a class with its templates being the class methods. You can build inheritance structures between groups and thereby overriding te

[il-antlr-interest: 20866] Re: [antlr-interest] Generating text from models

2008-12-05 Thread Mike Pagel
>> Can ST do this as well? > Well, it depends on what the arguments are. if it's an attribute or > string of some kind, you can use the format option and a renderer. That would probably work but look a little weird I guess. > Any time I need to pass an argument back into the model from the > t

[il-antlr-interest: 20864] Re: [antlr-interest] Generating text from models

2008-12-05 Thread Mike Pagel
Hey Ter, thanks a lot. For a full model-to-text transformation you can then merge the model's object tree and the corresponding template at the top of the hierarchy, and the latter then pulls in further more fine-grained templates as it is proceeds. And this is exactly what XPAND or much rathe

[il-antlr-interest: 20851] Re: [antlr-interest] Generating text from models

2008-12-05 Thread Mike Pagel
Mike Pagel schrieb: Hi Oliver, you are right, this is what I want to do achieve, but: I was wondering whether this could be done the ANTLR way, i.e. through grammars and ST templates, instead of using a whole different templating mechanism. One of the main reasons I am after this is that my

[il-antlr-interest: 20846] Re: [antlr-interest] Generating text from models

2008-12-04 Thread Mike Pagel
n open source tool that translates models >> into code using ANTLR >> http://wiki.eclipse.org/Xtext >> >> it's part of openArchitectureWare >> http://www.openarchitectureware.org/ >> >> which in turn is part of topcased (I think): >> http://topcased.

[il-antlr-interest: 20833] Re: [antlr-interest] Generating text from models

2008-12-03 Thread Mike Pagel
e over the list of methods in a class or whatever and build up the output (using templates optimally). Ter On Dec 3, 2008, at 3:14 PM, Mike Pagel wrote: > Hi there, > > first of all: I am pretty new to ANTLR and to this mailing list. I did > search the archive for information but coul

[il-antlr-interest: 20822] [antlr-interest] Generating text from models

2008-12-03 Thread Mike Pagel
Hi there, first of all: I am pretty new to ANTLR and to this mailing list. I did search the archive for information but could not find anything addressing my question. If it's in there, just send the link, please... Now: I am coming from a modeling (UML-like, graphical DSLs) background, where