[squeak-dev] grammarPEG : Grammar <- Definition+ !. what is the !.

Chris Cunnington brasspen at gmail.com
Thu Apr 16 17:06:03 UTC 2020



> On Apr 16, 2020, at 9:43 AM, gettimothy via Squeak-dev <squeak-dev at lists.squeakfoundation.org> wrote:
> 
> Grammar	<-	Definition+ !.
> 

I think this is just the root definition of the tree after the mandatory Grammar definition. You are allowed one or more further definitions, which is what the + is for. The !. just says nothing else will be processed. To me it almost looks like the root as a no-op, because it just passes on to wherever Definition is defined. 

Chris 

Screaming Trees - Nearly Lost You 
https://www.youtube.com/watch?v=PE5f561Y1x4 <https://www.youtube.com/watch?v=PE5f561Y1x4>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200416/4239ae6b/attachment.html>


More information about the Squeak-dev mailing list