From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.devel Subject: Re: Make peg.el a built-in library? Date: Thu, 14 Oct 2021 12:25:30 +0200 Message-ID: <874k9jkin9.fsf@web.de> References: <875yvtbbn3.fsf@ericabrahamsen.net> <87a6jjc7c8.fsf@web.de> <87zgri22e2.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3496"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Helmut Eller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Oct 14 12:27:00 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1maxwy-0000eA-Jr for ged-emacs-devel@m.gmane-mx.org; Thu, 14 Oct 2021 12:27:00 +0200 Original-Received: from localhost ([::1]:35994 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1maxws-0003zc-9C for ged-emacs-devel@m.gmane-mx.org; Thu, 14 Oct 2021 06:26:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43440) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1maxvh-00039o-QX for emacs-devel@gnu.org; Thu, 14 Oct 2021 06:25:41 -0400 Original-Received: from mout.web.de ([212.227.17.12]:33355) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1maxvf-0004ub-SF for emacs-devel@gnu.org; Thu, 14 Oct 2021 06:25:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1634207131; bh=hgsICReQ/oPgvFC8qOF+PUf27tvn7V5Qsru3VIF5aTY=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=lVPjb9I3WNUy3IV2jQx/Kp/7lxcF6PjVJ6HHuRNenyJ/T+VcHyFbMmg2Zfs1VIsBs ag4CO8inYvoaITtUToWnt3b0HwegRwcIavsLOywlfiSWPB3cv9gJrpORiBYcZ3FapY HoT220XJer8XSjoL9c9IeglfShAlnaqb0h9UWngs= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from drachen.dragon ([92.208.225.87]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0M3jwL-1mt2oE2s41-00rK7w; Thu, 14 Oct 2021 12:25:31 +0200 In-Reply-To: (Helmut Eller's message of "Sat, 09 Oct 2021 10:12:03 +0200") X-Provags-ID: V03:K1:Wf07s+qCazzFJbcd4HMSLrwzorapnQ2I36Tpbgb8lLBvrELao/E wGHhz3zIK/YFY4GtLr54LJhowEZZWRSFjlH6apbbuiDEHTIPr7yacxSwIQK/Vxc+Q0SFD4x Z3qYG/Pv/QEfP8+upwkBoOXVy7LBGyTw7s1IypHVymuhgZ2xeiUFL4EHgX8cjzDXB479NNp cGR5jESzltwdVDg03hS0w== X-UI-Out-Filterresults: notjunk:1;V03:K0:ayTvIYNbUhs=:wqCIA9zvmn0xisgDkqukXl 7tlN9nFKPMiNMIgLUNOUy1c2YRE8SXE+gz5/Qz8zjAM1I2fvWjV+M5YOxQKsQMwaNPDhHG62D l8onYMr2E1iLeaXXNfwuL49YB7CxCkL1A0zdQBNWzHUQgDwRdYjjpRhWt6zTfEJvy56Duxg/1 dSvyycKNIZTqenrXWZR9QeMfyXzf6gsbwlkntm+v29zFzoeJmSdXLjAJwW1iLv9WYGfpv5qpe CSp1XzebUDA7rw8CgnnrcFH1LMEXHnG7F5mEYaLEKcv5idfIhrogaHj85KJxWGa9ZEPHb25Zo yHUBOu+lEhQZ7fEV3Q9XYffh5hYGEw4BJl5kQ86EP5T16ZbHrbE0VKv9SWBUD4HwqWg54rRn9 B/0r1C5mxIXjInVy5T3GEgdETs8eD/rWWLHrkvyHhcvwVHZPMjNGsiJGTU6SD77LXhJz15pT9 +sXXkhKPIhF7Wl9Qfpfj5nRQ2s9QBj5YYWLLSLLX8IzkRtJLamOaXoiqnlosBg5YdEwQWWePu Q4zN2aDCQxQ2qThjy1MAiVjhQjdrIzOrPOqBMmSZ/FhDRdCp5fT11Mk8B7kvy7zNSafkrpVMC fkMAHmgZ3VytE1HIbxYgtkiUYlBffsr/QAkwN77S+XZv4KKZaBwEnclTaBuFcVrxVJCT6G+9q yOQU0ygBc+ymn9a5eyxMkvPiCnAnY+bD/Z1boJhDpz18TWQnSOax0ptU7RY0W342pEmq8w9Xw GA5bU4lZo18E5ykjm+fihdyA33M8kVfFHzyI/16j7WM1eW9XNwxNHy6QP769qEJAFwuG4N2C Received-SPF: pass client-ip=212.227.17.12; envelope-from=michael_heerdegen@web.de; helo=mout.web.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:276977 Archived-At: Helmut Eller writes: > Self-recursion can sometimes be rewritten using *. In peg.el, * is > "inlined" and so doesn't run out of stack: > > (rule [maches what I want]) > (search (and (* (not rule) (any)) rule)) > > It's kinda like rewriting a self tail call to a while loop. Yes, that works well in my case, thanks. Michael.