RE: 'foreign' bug

2000-01-17 Thread Simon Marlow
> > I am reminded of the layout rule, where certain parse > errors are caught > > and trigger a re-lexing of the input. Would it be possible to do > > something similar here, where certain parse errors in a > line beginning > > with the special id "foreign" are caught and trigger re-parsing as

RE: 'foreign' bug

2000-01-15 Thread Manuel M. T. Chakravarty
[EMAIL PROTECTED] wrote, > Me: > > > However, it is definitely wrong for 'foreign' to be treated as a > > > keyword. Instead, it is a special identifier > > Simon: > > Tricky, at least in LALR(1). > > Yes, you are right of course. Backtracking parser combinators had me > blinded to the sad re

RE: 'foreign' bug

2000-01-14 Thread malcolm-ghc
Me: > > However, it is definitely wrong for 'foreign' to be treated as a > > keyword. Instead, it is a special identifier Simon: > Tricky, at least in LALR(1). Yes, you are right of course. Backtracking parser combinators had me blinded to the sad realities of the world. :-) > There are stan

RE: 'foreign' bug

2000-01-14 Thread Simon Marlow
Malcolm writes: > Ian noted the following bug: > > > * `foreign' seems to have become a keyword ! My program > uses it as a > > variable/function name and I had to rename it to avoid a > parse error. > > I couldn't find anything about it in my documentation. > > As Michael noted, this is a c