Perl 6 - the future is here, just unevenly distributed

IRC log for #marpa, 2016-10-03

| Channels | #marpa index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:22 idiosyncrat_ joined #marpa
01:48 ilbot3 joined #marpa
01:48 Topic for #marpa is now Start here: http://savage.net.au/Marpa.html - Pastebin: http://scsys.co.uk:8002/marpa - Jeffrey's Marpa site: http://jeffreykegler.github.io/Marpa-web-site/ - IRC log: http://irclog.perlgeek.de/marpa/today
02:26 kaare_ joined #marpa
03:17 harovali1 joined #marpa
03:18 harovali1 hi , I'm stuck trying to say something in SLIF.
03:19 harovali1 Body ::= Lines                                             Lines ::= Line*                                                         Line ::=
03:19 harovali1 these are three separated rules
03:19 harovali1 I simply want to see the text as lines
03:19 harovali1 a line is a text line literally as is in the input
03:20 harovali1 should I express that as a character class ?
03:21 aredridel joined #marpa
03:22 harovali1 http://pasted.co/2edf38bc
03:22 harovali1 this is the grammar
05:42 ronsavage joined #marpa
05:44 ronsavage harovali1: What happens if you use Line ::= [.]+
06:23 ronsavage joined #marpa
06:25 harovali joined #marpa
06:49 ronsavage Or perhaps that should be Line ::= .+. I forget if '.' is itself inside [] and I did not look it up!
07:21 sirdancealot joined #marpa
15:36 idiosyncrat_ harovali1: the central problem is that your grammar is discarding all white space, but you also want to recognize lines ...
15:36 idiosyncrat_ and for lines the newline character is meaningful and shouldn't be thrown away.
15:38 idiosyncrat_ One solution, if your entire grammar is line-by-line, is to only discard spaces (and tabs if you allow them), and to explicitly deal with the newlines in the L1 statements.
15:40 idiosyncrat_ If your grammar is mixed (at points line-indifferent, and at other points line-by-line) there are other tricks you can use.
16:53 sirdancealot joined #marpa
18:28 harovali joined #marpa
21:54 ronsavage joined #marpa
23:10 ceridwen joined #marpa

| Channels | #marpa index | Today | | Search | Google Search | Plain-Text | summary