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
<1999>
2000
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
<1999>
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|