[stringtemplate-interest] Tracking down template errors

Hill, Robert rhill03 at eds.com
Fri Jun 8 02:08:52 PDT 2007


Its, ok I've found it!
I have a set of keywords that make anything between them get emitted
verbatim to the output file.
a some point I'd added a '<' into the code to get emitted, and when that
gets set to the template, obviously there's an unescaped < in there!
 
D'Oh. 
 
So it turns out that it wasn't an anonymous template that was broken, it
was the output string that was getting sent to it containing an
unescaped less than char!
 
one to remember I guess!
 
cheers,
Rob
 
 

Robert Hill 
Information Analyst (C/C++,C#,.NET,Java) 
Agile Alliance Member 
UKIMEA Technical Capabilities ADU 
UKIMEA RABU 
Application Services Field Operations EMEA 

Hallamshire Business Park, 100 Napier St, Sheffield. S11 8HD 
email:  rhill03 at eds.com 
Office: +44 114 291 1928 
Mobile: +44 7903 185 516 

This email contains information which is confidential and may be
privileged. Unless you are the intended addressee (or authorised to
receive for the addressee) you may not use, forward, copy or disclose to
anyone this email or any information contained in this email. If you
have received this email in error, please advise the sender by reply
email immediately and delete this email.

Electronic Data Systems Ltd 
Registered Office:, Lansdowne House, Berkeley Square, London  W1J 6ER 
Registered in England no: 53419 
VAT number: 432 99 5915 


 


________________________________

	From: stringtemplate-interest-bounces at antlr.org
[mailto:stringtemplate-interest-bounces at antlr.org] On Behalf Of Hill,
Robert
	Sent: 08 June 2007 08:55
	To: StringTemplate
	Subject: [stringtemplate-interest] Tracking down template errors
	
	

	Hi all 
	        I'm a little rusty with the ol' template stuff, and I'm
getting this error 

	problem parsing template 'anonymous' 
	line 9:1: expecting '>', found '<EOF>' 

	I haven't touched this for ages, and I can't remember seeing
this when I left it, and the only thing that I've changed is upgrade to
the latest Antlr 3 release (from 3.0b5)

	How do I track down *which* anonymous template given there's no
context? It's quite a big file with lots of these :( 

	Any handy tips would help! 

	Thanks, 
	Rob 



	Robert Hill 
	Information Analyst (C/C++,C#,.NET,Java) 
	Agile Alliance Member 
	UKIMEA Technical Capabilities ADU 
	UKIMEA RABU 
	Application Services Field Operations EMEA 

	Hallamshire Business Park, 100 Napier St, Sheffield. S11 8HD 
	email:  rhill03 at eds.com 
	Office: +44 114 291 1928 
	Mobile: +44 7903 185 516 

	This email contains information which is confidential and may be
privileged. Unless you are the intended addressee (or authorised to
receive for the addressee) you may not use, forward, copy or disclose to
anyone this email or any information contained in this email. If you
have received this email in error, please advise the sender by reply
email immediately and delete this email.

	Electronic Data Systems Ltd 
	Registered Office:, Lansdowne House, Berkeley Square, London
W1J 6ER 
	Registered in England no: 53419 
	VAT number: 432 99 5915 



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org:8080/pipermail/stringtemplate-interest/attachments/20070608/6913f565/attachment.html 


More information about the stringtemplate-interest mailing list