I'm surprised that Michael didn't jump on this one, but I believe it
should be as easy as adding the code to the following line in
compiler/parser/chapel.lex:
[ \t\r] processWhitespace(yyscanner);
Then doing 'make parser' in that directory, then remaking the compiler.
Have we got you under a CLA yet? This'd be an easy way to make the 1.11
CONTRIBUTORS list. :)
(There very well may be other whitespace characters here. When we were
developing the lexer, we took an approach of "Does anyone actually care
about all these whitespace characters?!" and opted to go for the minimal
set and see who complained. A decade+ later, now we know. :)
Best wishes,
-Brad
On Tue, 2 Jun 2015, Damian McGuckin wrote:
>
> Adding to the list,
>
> It would be really useful if, as other languages do, Chapel allows the
> exploitation Unix/Linux pagination tools that ignore the occurence of a
> Ctrl-L ('\f', form-feed, 0x0c) in the input stream rather than saying
> there is a syntax error.
>
> I am trying to do a 'vgrind' entry for Chapel which I will post later
> and this is the only way I know to get a page break.
>
> MichaelF, another, hopefully simple thing to add to the lexer??
>
> Regards - Damian
>
> Pacific Engineering Systems International, 277-279 Broadway, Glebe NSW 2037
> Ph:+61-2-8571-0847 .. Fx:+61-2-9692-9623 | unsolicited email not wanted here
> Views & opinions here are mine and not those of any past or present employer
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Chapel-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/chapel-users
>
------------------------------------------------------------------------------
_______________________________________________
Chapel-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/chapel-users