Merge branch 'exit_matcher_investigation'

This commit is contained in:
Tom Alexander 2023-03-21 15:30:04 -04:00
commit 150b4d4387
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
8 changed files with 72 additions and 3 deletions

25
org_mode_samples/Makefile Normal file
View File

@ -0,0 +1,25 @@
SHELL := bash
.ONESHELL:
.SHELLFLAGS := -eu -o pipefail -c
.DELETE_ON_ERROR:
MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules
SUBDIRS := $(wildcard */.)
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:
> for dir in $(SUBDIRS); do \
> make -C $$dir $@; \
> done
.PHONY: clean
clean:
> for dir in $(SUBDIRS); do \
> make -C $$dir $@; \
> done

View File

@ -0,0 +1,23 @@
SHELL := bash
.ONESHELL:
.SHELLFLAGS := -eu -o pipefail -c
.DELETE_ON_ERROR:
MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules
SRCFILES := $(wildcard *.org)
OUTFILES := $(patsubst %.org,%.tree.txt,$(SRCFILES))
ifeq ($(origin .RECIPEPREFIX), undefined)
$(error This Make does not support .RECIPEPREFIX. Please use GNU Make 4.0 or later)
endif
.RECIPEPREFIX = >
.PHONY: all
all: $(OUTFILES)
.PHONY: clean
clean:
> rm -rf $(OUTFILES)
%.tree.txt: %.org ../common.el ../dump_org_ast.bash
> ../dump_org_ast.bash $< $@

View File

@ -0,0 +1 @@
This folder is an investigation into whether or not my exit matchers should operate from the top down or bottom up.

View File

@ -0,0 +1,3 @@
Looks like 2 blank lines always exits the top-level plain list.
Plain lists do not seem to go inside paragraphs but rather exist beside them.

View File

@ -0,0 +1,10 @@
1. foo
bar
1. baz
lorem
ipsum

View File

@ -0,0 +1 @@
Looks like table cells cannot contain lists but can contain bolds

View File

@ -0,0 +1,5 @@
ip *su* m
| foo | bar |
|----------+-----|
| 1. lo *re* m | |

View File

@ -4,7 +4,8 @@ SHELL := bash
.DELETE_ON_ERROR:
MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules
OUT=out
SRCFILES := $(wildcard *.org)
OUTFILES := $(patsubst %.org,%.tree.txt,$(SRCFILES))
ifeq ($(origin .RECIPEPREFIX), undefined)
$(error This Make does not support .RECIPEPREFIX. Please use GNU Make 4.0 or later)
@ -12,11 +13,11 @@ endif
.RECIPEPREFIX = >
.PHONY: all
all: paragraphs.tree.txt nested_paragraphs.tree.txt
all: $(OUTFILES)
.PHONY: clean
clean:
> rm -rf *.tree.txt
> rm -rf $(OUTFILES)
%.tree.txt: %.org ../common.el ../dump_org_ast.bash
> ../dump_org_ast.bash $< $@