[prev in list] [next in list] [prev in thread] [next in thread]
List: squeak-beginners
Subject: Re: [Newbies] How to approach this PEGParser Grammar Fix.
From: tty <gettimothy () zoho ! com>
Date: 2019-09-05 15:42:22
Message-ID: 1567698142542-0.post () n4 ! nabble ! com
[Download RAW message or body]
So, to answer my initial questions...
The way to debug this is from the bottom up.
the rule
Page <- (Paragraph)* and a breakpoint in the PEGActor's Paragraph method
shows that the rule for Paragraph
Line <- Flow{1,"\n"}
Paragraph <- Line
while wrong(it wraps the entire page in a paragraph), IS being captured by
the Actor.
Interesting, the Paragraph is executed before the Page..this tells me that
its an inverse onion approach.
Get the inner rules correct and work outwards.
So, I have a broken Grammar for WikiText and now I have a method to approach
this problem.
1. try to define a rule.
2. put a breakpoint in the method that has a pragma for that rule.
3. ???
4. profilt
--
Sent from: http://forum.world.st/Squeak-Beginners-f107673.html
_______________________________________________
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic