Add scripts for dumping the org-mode ast to investigate how emacs parses various inputs.
This commit is contained in:
22
org_mode_samples/plain_lists/Makefile
Normal file
22
org_mode_samples/plain_lists/Makefile
Normal file
@@ -0,0 +1,22 @@
|
||||
SHELL := bash
|
||||
.ONESHELL:
|
||||
.SHELLFLAGS := -eu -o pipefail -c
|
||||
.DELETE_ON_ERROR:
|
||||
MAKEFLAGS += --warn-undefined-variables
|
||||
MAKEFLAGS += --no-builtin-rules
|
||||
OUT=out
|
||||
|
||||
ifeq ($(origin .RECIPEPREFIX), undefined)
|
||||
$(error This Make does not support .RECIPEPREFIX. Please use GNU Make 4.0 or later)
|
||||
endif
|
||||
.RECIPEPREFIX = >
|
||||
|
||||
.PHONY: all
|
||||
all: paragraphs.tree.txt
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
> rm -rf *.tree.txt
|
||||
|
||||
%.tree.txt: %.org
|
||||
> ../dump_org_ast.bash $< $@
|
||||
3
org_mode_samples/plain_lists/paragraphs.org
Normal file
3
org_mode_samples/plain_lists/paragraphs.org
Normal file
@@ -0,0 +1,3 @@
|
||||
1. foo
|
||||
2. bar
|
||||
(message "%s" (org-element-parse-buffer))
|
||||
Reference in New Issue
Block a user