EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  <19992000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  <19992000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: dbLoadTemplate
From: Benjamin Franksen <[email protected]>
To: EPICS Techtalk <[email protected]>
Date: Fri, 20 Aug 1999 17:26:21 +0200
Whoever controls epics/base/src/dbtools (Marty?)

I am frequently irritated by the error message 'Substitution file parse
error' that dbLoadTemplate issues when it encounters an empty
substitution body for an existing file, like 

file xxx.template {
}

What dbLoadTemplate does is ok (ie no instances are created), but the
message causes confusion because the user doesn't know if there is a
_real_ error, so in principle it may not be ignored safely.

I think this construct should be allowed by the parser, since
substitution files are often (at least at BESSY) generated by scripts
and the case 'no instances of this template' appears quite often.
Changing the scripts so that they do not produce the 'file xxx.template
{}' in this special case would complicate them beyond reason.

The necessary changes are simple: Allow the non-terminal symbol 'subst'
to be empty: in dbLoadTemplate.y change

subst: PATTERN pattern subs
	| var_subs
	;

to

subst: PATTERN pattern subs
	| PATTERN pattern
	| var_subs
	|
	;

I tested this and didn't notice any undesired side-effects.

Ben
-- 
The Notorious Neb Nesknarf
---------------------------------------------------------------------
@BESSY II: fax: +49 30 6392-4859 phone: +49 30 6392-4865
---------------------------------------------------------------------
keep the listeners busy: Kosovo Iran Kurdistan Albanien Libyen Heroin
Waffenlieferung FARC ELN PKK ...


Navigate by Date:
Prev: Re: Sequencer on Host system (or something similar) Allan Honey
Next: CapFast Dr. Chong Lee
Index: 1994  1995  1996  1997  1998  <19992000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Wire Scanners Gary Carr
Next: logging onto an ioc (rlogin,telnet) luchini
Index: 1994  1995  1996  1997  1998  <19992000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·