On Wed, 24 Oct 2018, oleg_komashko(a)ukr.net wrote:
> It does, but that leaves the problem of lags, as in series(-1)
lag has description and 'patent' attribute within
Possibly, tokenizer could somehwo play with it
That doesn't help when we're trying to distinguish between "foo(" as
the start of a call to a function named "foo" and "foo(" as the
start of a reference to a lag of a series named "foo": both could in
principle be valid possibilities, as things stand.
Also, if I am not missing something, x(-1) a the first lag of x
can appear only in list creating or inside a coomand
Yes, that's right.
x = normal()
list li = x(-1)
ols x(-1) 0
function scalar x(scalar arg)
So, x(-1) -> -1
This function can not appear
while creating lists,
Neither is possible to
use such function inside a command xlist
I think it is possible to force tokenizer
This point is worth following up, I agree.