EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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

Subject: Re: msi again
From: Andrew Johnson <[email protected]>
To: [email protected]
Date: Wed, 25 Aug 2010 13:34:21 -0500
Hi Ben,

On Wednesday 25 August 2010 04:12:44 Benjamin Franksen wrote:
> How to exactly formalize the grammar (perhaps so it translates
> to yacc code better) feels like an implementation detail to me; I have no
> objections here.

Great, thanks.  I will try to add the final grammar to the AppDevGuide (now I 
have to go and learn LaTeX...).

> I maintain that
>
> pattern_substitutions: 'pattern' '{' pattern_names? '}' pattern_definitions?
>
> is the better rule. I think it maps to this yacc code:
>
> pattern_substitutions: PATTERN O_BRACE C_BRACE
>     | PATTERN O_BRACE C_BRACE pattern_definitions
>     | PATTERN O_BRACE pattern_names C_BRACE
>     | PATTERN O_BRACE pattern_names C_BRACE pattern_definitions
>     ;

You're right, these should all be valid:

file xyz { pattern {} }		- No insertion
file xyz { pattern {} {} }		- Insert xyz
file xyz { pattern {x} }		- No insertion
file xyz { pattern {x} {} }		- Insert xyz, x inherits or is undefined
file xyz { pattern {x} {1} }	- Insert xyz, x=1

However this should result in a warning message, which I added to 
dbLoadTemplate yesterday:

file xyz { pattern {} {1} }

I was getting confused over something else.

Now I need to look at your msi patches, which I don't think Ralph has merged 
into his msi-join branch yet...

Thanks,

- Andrew
-- 
The best FOSS code is written to be read by other humans -- Harald Welte


Replies:
Re: msi again Benjamin Franksen
References:
msi again Benjamin Franksen
Re: msi again Andrew Johnson
Re: msi again Benjamin Franksen

Navigate by Date:
Prev: Re: msi again Andrew Johnson
Next: RE: atomic operations in base Jeff Hill
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: msi again Benjamin Franksen
Next: Re: msi again Benjamin Franksen
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·