]> gitweb.factorcode.org Git - factor.git/commitdiff
peg: document (repeat) stack effect can return f.
authorJohn Benediktsson <mrjbq7@gmail.com>
Mon, 23 Nov 2020 19:10:25 +0000 (11:10 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Mon, 23 Nov 2020 21:35:13 +0000 (13:35 -0800)
basis/peg/peg.factor

index ca1a795f0a02585f5a9041bbddc4988b302fd589..9da44893ac3ba66f75b0fad1ceb60311f105a82e 100644 (file)
@@ -401,7 +401,7 @@ M: choice-parser (compile)
 
 TUPLE: repeat0-parser parser ;
 
-: (repeat) ( quot: ( -- result ) result -- result )
+: (repeat) ( quot: ( -- result/f ) result -- result )
     over call [
         [ remaining>> >>remaining ] [ ast>> ] bi
         over ast>> push (repeat)