From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id Gt2sLML0sWCYLQAAgWs5BA (envelope-from ) for ; Sat, 29 May 2021 10:01:06 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 6HxkJ8L0sWCnOgAAB5/wlQ (envelope-from ) for ; Sat, 29 May 2021 08:01:06 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2D31617463 for ; Sat, 29 May 2021 10:01:06 +0200 (CEST) Received: from localhost ([::1]:44350 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lmtu3-0007zW-Bc for larch@yhetil.org; Sat, 29 May 2021 04:01:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52966) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lmtsr-0007zK-RM for emacs-orgmode@gnu.org; Sat, 29 May 2021 03:59:49 -0400 Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]:44817) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lmtso-0007u5-Hy for emacs-orgmode@gnu.org; Sat, 29 May 2021 03:59:49 -0400 Received: by mail-lj1-x232.google.com with SMTP id s25so8092552ljo.11 for ; Sat, 29 May 2021 00:59:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:cc:date:message-id :mime-version; bh=vpYjIump1b52zDeZy7uUXFQrPRImYWeIlOBW9FfbM0I=; b=Z7dDhXaklGdCtt0fZUy5A21rHH2qN/OwwU793hTG2tz4cpFMtPOy8lyRrZpgOTOBOY s0cad0bXsBgZet/DXb/PXgld1aIUkVe5AAAVBXnbZzFaqMMdjhbfVTRU/M4W/4k8OTsZ fT+FsIN5XEWmLj4vDCxey04EsW5deDjdmparoNdULgBiGQKUv9vZiXCOm0DP2yULkKZg m2rlpuITQysfhtKIYNYJaI72uwVrTDo3dKtYFVrPvfL+j3ZcvJ5LmCUzZo7oHCyczKd3 mss5+FZ6q84eMYlL7tcVob+i8xHZgI++ZqqhNXSSCtXu0a4MzkF8Lrrkhc7oxKMiubNU aPmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:cc:date :message-id:mime-version; bh=vpYjIump1b52zDeZy7uUXFQrPRImYWeIlOBW9FfbM0I=; b=LxvxTPxh2zHKytlTPzDdnf3viMrlGp314+nQY2oKkhull8t/R0gZfPlJAADKu0Oh5R vQYteZH9OhP3YtrSi+/G59t6BluoplImHKlhSU20CKAW7etNJ6oUyaaIBbYRpMwgaXcC M34Mybo8IiJrsQ0xfBjfIsIfktyhB5slF/Wmlp70IIDjlCaiq9L7GhNt8tFzLeRxzL5V SeqYZ7648Hcmulf1p5s1SyQRhsa9+A4mD2iOw+4JAarQBsI4/9HNJVpLksJwNOPVOGlL OUi5rLGLMlGgujo6bFJP9kGNsXwxH6AMmyOCnvr0W5VrzO0NFy6g4o1AfBmpAK3/T3TP K9MA== X-Gm-Message-State: AOAM5334BXx98TizvYtXPyQ/bo1JwKFgWlwrIY2Km6LtLgVAr2Grd8ep HiqspcOfqcZ7JSM1tTRwGvI= X-Google-Smtp-Source: ABdhPJx0ATzxIiHSLZSUDsUSTaavMADdwAwi1UrheGQa51cw5j6i5htZev2TD6TP7PddIOg8G4VA6w== X-Received: by 2002:a2e:8653:: with SMTP id i19mr9278561ljj.11.1622275184770; Sat, 29 May 2021 00:59:44 -0700 (PDT) Received: from localhost ([141.105.67.194]) by smtp.gmail.com with ESMTPSA id s9sm672274lfr.231.2021.05.29.00.59.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 May 2021 00:59:44 -0700 (PDT) From: Ihor Radchenko To: Tom Gillespie Subject: Re: Empty headline titles unsupported: Bug? In-Reply-To: References: <87tumvdno3.fsf@gmail.com> <87eedw5s0c.fsf@gmail.com> <87o8czksaq.fsf@gmail.com> <87lf83kphd.fsf@gmail.com> <87tumqaj6h.fsf@nicolasgoaziou.fr> <87lf81y4e9.fsf@localhost> <87bl8wyhun.fsf@localhost> Date: Sat, 29 May 2021 16:04:29 +0800 Message-ID: <871r9qynhu.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::232; envelope-from=yantar92@gmail.com; helo=mail-lj1-x232.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, 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: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode , David Masterson Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1622275266; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=vpYjIump1b52zDeZy7uUXFQrPRImYWeIlOBW9FfbM0I=; b=BsfB0kbNjyKaMhZEbQ2f1fN4ilutwEU25YKhEZf6edJG+SjSSK2LkX4gPzjIpeWst5ufFa T2EEhACR5/EUq3rlf+LIX4DCc2oIEPi+S1EXy3PtWGfY7VZTEM3P0vygDC+CaeKT0SEXKG u+u3xcJLv+8IMzuehcs1F/8sFRBLlw1FVFMMrKD0lB+JfkUt3DzVS91AupJ2SP97oA64ow 3GPIwVBZWcZ1jUssb3CqAb+l5qpH+5CZ5tl8Tzd2kVWNMiQSsBIak7wVv6idEpwPAZcVQU s2eOc43x5nzJCzth2bn7RRFHhcGrEd52RQlKMCotcJUQj9KyKedDt+3x+Fo2mQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622275266; a=rsa-sha256; cv=none; b=oxLUW64GMICIZs2CAA45GgQow0WFpG8NrgUSErw+CASV7/FzBnxSYwK6p63Q9xwE4v0tHq YZznjS9cm62OEr1wZb5GfeSddz07LHf0fpaG8Dv1P8ADLUa3oNpR342VETjbtJ3qnpmZ36 F2XZAHNVSt+bm1OsP+KINhQXDfov8A+DNP5Bfr3Jp7+poCXwWP3AuxwnyEH1C9KxvlFJ/G RtCjUSEzC9WEus0Cral2zlMKG1+nQY4f5AXkJ0ioHd/K6Gv3af7Lc7hlDgluC3j/thaZeL HUGcZQs2OLG8nZHGjZIVOWkJgOffC3KY6OBTj8ZjtdApOeNoImnd81xC4CEITg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=Z7dDhXak; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: 1.67 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=Z7dDhXak; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 2D31617463 X-Spam-Score: 1.67 X-Migadu-Scanner: scn0.migadu.com X-TUID: lI/zMMBghRCP Tom Gillespie writes: > Hi David, > Laundry produces a full s-expression representation of the org > parse tree (though it is still evolving). I haven't added a pass that > converts it to some Racket internal representation (probably will be > structs). If you get it installed and put #lang org at the top of an > org file you can use racket-mode to parse arbitrary org files, though > you may hit an error and will definitely encounter an > incomplete/incorrect parse since it is still a work in progress. Best, > Tom Hi, I looked through your code. I saw some hand-written tests on grammar. Would you be interested in converting those tests into tests in test-org-element test suite? If the same tests are used for org-element itself and for your parser, we can easily make sure that incorrect parsing is avoided. Or you can even reuse the built-in tests for testing your code (say, by remapping org-element-at-point calls in the tests to analogous function from your parser). Best, Ihor