Perl 6 - the future is here, just unevenly distributed

IRC log for #marpa, 2014-05-08

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

All times shown according to UTC.

Time Nick Message
02:35 ronsavage joined #marpa
03:42 yxhuvud joined #marpa
11:35 yxhuvud joined #marpa
12:55 LLamaRider joined #marpa
14:30 jeffreykegler joined #marpa
18:04 jdurand joined #marpa
22:02 jalvo joined #marpa
22:06 jalvo Hello all.... I came up with a way to "ignore the rest of  the input" - was wondering if there was a better way
22:06 jalvo <histrule_condition>  ::= '*HISTRULE' <not_newline>
22:06 jalvo <not_newline>          ~ [^\n]*
22:39 ronsavage joined #marpa
22:45 jeffreykegler joined #marpa
22:47 jeffreykegler jalvo: re http://irclog.perlgeek.de/marpa/2014-05-08#i_8697857 -- out of context, it looks fine.
22:48 jeffreykegler One of the motivations for LATM was to make that sort of hack work.
22:49 jeffreykegler Without LATM, in most grammars, Marpa will just suck up every line as a <not newline>, which is usually not what is wanted.  LATM makes Marpa eat things up as <not newline> only when a <not newline> is actually acceptable to the grammar.
22:50 jeffreykegler That said, you still have to be careful -- if by accident you create too many places where a <not newline> is acceptable, it will eat up things you want accepted as shorter lexemes.
22:54 jalvo In this case it was just the *IF *HISTRULE ....  where I wanted to ignore the rest of the line

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