Hi Philip, Cedric,
> 1. Mike, is there any reason why the following approach wouldn't
> suffice
> for your HPC needs?
>
> ActiveTime("**/*.h") + ActiveTime("**/*.c").
This approach would be sufficient for my needs, but I think we should
think about extending the Telemetry Query Language to support a more
flexible pattern (including operators 'or' and 'not'). With these
operators, we could derive any boolean function for file patterns.
I know Cedric has been really busy lately, so I could use the approach
above as a start and then migrate over to the expanded TQL when Cedric
has some free time :) to implement it.
> 2. If there's some reason that the current approach wouldn't be
> OK, then I
> would propose that we embed the "or" into the FilePattern string
> itself:
> ActiveTime("**/*.c, **/*.h, **/*.cc")
I think Cedric mentioned that the comma token poses a conflict when
parsing certain functions containing a file pattern and email, e.g.
ActiveTime("**/*.c*", "[EMAIL PROTECTED]")
In regards to the JavaCC grammar, it would probably be easier to define
new tokens representing the 'or' and 'not' operations, rather than
trying to lookahead and differentiate the comma tokens.
Does this sound reasonable?
-M
> --On Thursday, November 4, 2004 3:56 PM -1000 "(Cedric) Qin ZHANG"
> <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> >
> > Mike mentioned to me today that he (and Philip?) wants to have a
> pattern> that could match both c and h files at the same time. In
> current> implamentation you can only match either c or h files.
> If you want to
> > have total active time on both c and h files, then you have to use:
> > ActiveTime("**/*.h") + ActiveTime("**/*.c").
> >
> > It seems that people prefer to something like
> > ActiveTime("**/*.h + **/*.c").
> >
> > This is doable, but we need to decide operator it should support
> and the
> > syntax we want to use.
> >
> > What I can think is:
> >
> > * Operator: OR(+), NOT(!)
> > * Syntax: pattern1 + pattern2, !pattern1, !pattern1 + pattern2
> >
> > Should we allow more complex syntax? If so, what's the advantage?
> >
> >
> > Any comments, please.
> >
> > Thanks.
> >
> > Cedric
> >
>
>
>
>
>