From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Matt Wette Newsgroups: gmane.lisp.guile.user Subject: Re: Questions about PEG parsing Date: Tue, 2 Nov 2021 05:44:06 -0700 Message-ID: <189cc4ee-ec34-8b20-1b67-05a4e8b6d0c1@gmail.com> References: <64ff1f637d30dcf9cf9df1c20284698ea33e9c1d.camel@planete-kraus.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30704"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.2 To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Tue Nov 02 14:02:42 2021 Return-path: Envelope-to: guile-user@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 1mhtR3-0007lQ-V7 for guile-user@m.gmane-mx.org; Tue, 02 Nov 2021 14:02:41 +0100 Original-Received: from localhost ([::1]:46418 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mhtR2-0001cb-Pv for guile-user@m.gmane-mx.org; Tue, 02 Nov 2021 09:02:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41812) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mht9B-0003Bl-IE for guile-user@gnu.org; Tue, 02 Nov 2021 08:44:13 -0400 Original-Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]:46016) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mht9A-0008UI-0k for guile-user@gnu.org; Tue, 02 Nov 2021 08:44:13 -0400 Original-Received: by mail-pl1-x633.google.com with SMTP id f8so15919085plo.12 for ; Tue, 02 Nov 2021 05:44:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :references:from:in-reply-to:content-transfer-encoding; bh=mGpqumEWdgok1xfc5yZIQL1sPh3DDqeZKxi+HXX2ALc=; b=QQ7HBxoYmFmXLqki/LQdd9YH5/vOBqQrARfh60CfYPjSl5MnecTep+YeKHmWA/QQHa Sspg3Ib7mmnckthiykXPREPFT3OUmEHkRP/7BXa/BcCizAHBUFEUSzpogjsZ9iw0Nrkh FjAnoS/mTHZ0XywT6mshrFbEKiJYMcb2u0srr5f/AmGMn+WwbK9n87rVg6Vc29ngSoLi p2FQbCUZCk4G44TMGcm6Kpo3APbHVWBGm//pKCR3fjHUDD/wk7phLJdmehcFvqXiFrnG Q1C+cvMZ2PWPAHy61eoKCrh9NgW0xQogbu2+jBnizMnnqphaaloYFmtXRMA3x27aiPgZ a53Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=mGpqumEWdgok1xfc5yZIQL1sPh3DDqeZKxi+HXX2ALc=; b=GA62x8u5G3l8AbjV0rF7chEbPCpTGKP+hoPfTsWn3qVcvWrYla7B+/0YgIGyHwonjU i5+RsPZTpcMRSlhAD+sxWEpLwbL00lYveCJ8q8wm7OP/zCAWk7IHl9bkY/V6LXtdDoqM 2RvLhed3ZjQ78rsCSz0RklNNldUMmPodBqQuHza1VuMFVQoLWgRBHLsq8zZ1WycMr26V wgMGHE2bo018RGY2mOQFDh5PtVa7tsIJCeF04U21G1hjVU3JgqmOZPAekHpsd7cQ4QpO 803+3g7YxyDNUjSHInSziPrqBaFqmL8B8uJAZAHLS95t636RBJNhteIaJQeHClh2XzUc IsJg== X-Gm-Message-State: AOAM532sQfPUAUGdAB41ttV61d17VETpvLV4Rzsgn+o7AaHSwwGhPZND W2SjnsWqe9y/gzaZNsxkxhM4+NnLOWU= X-Google-Smtp-Source: ABdhPJzYm8OGrxkxfgSadGhwXu/5XgsWUF2Rp8PNlnBdF+j4qlNhXRM9SIurOo5ShLrKXxdMCbmvSA== X-Received: by 2002:a17:90a:7e13:: with SMTP id i19mr6396522pjl.120.1635857049440; Tue, 02 Nov 2021 05:44:09 -0700 (PDT) Original-Received: from [192.168.2.158] (64-52-176-132.championbroadband.com. [64.52.176.132]) by smtp.gmail.com with ESMTPSA id e9sm14739530pfv.132.2021.11.02.05.44.08 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 02 Nov 2021 05:44:09 -0700 (PDT) Content-Language: en-US In-Reply-To: <64ff1f637d30dcf9cf9df1c20284698ea33e9c1d.camel@planete-kraus.eu> Received-SPF: pass client-ip=2607:f8b0:4864:20::633; envelope-from=matt.wette@gmail.com; helo=mail-pl1-x633.google.com X-Spam_score_int: -45 X-Spam_score: -4.6 X-Spam_bar: ---- X-Spam_report: (-4.6 / 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, NICE_REPLY_A=-2.549, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:17822 Archived-At: On 10/23/21 4:25 PM, Vivien Kraus via General Guile related discussions wrote: > Dear guile users, > > There are two ways to make a parser with guile: the undocumented > LALR(1) parser generator, for which I don’t know how to reuse grammar > elements, and the PEG parser. > I'm not sure what your needs are but in my case being not keen on the lalr parser in Guile I ended up writing my own (for Guile).      https://savannah.nongnu.org/projects/nyacc If you go to the "Project Homepage" there are some manuals.  And the distribution includes several examples. Matt