Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[htm8 refactor] Use token IDs in htm8.asdl #2231

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix
Andy C committed Jan 14, 2025
commit 0fd473993c92f026628c9dc762d8ba67023bbf4a
8 changes: 6 additions & 2 deletions doctools/src-tree.sh
Original file line number Diff line number Diff line change
@@ -16,6 +16,10 @@ source build/common.sh # log

export PYTHONPATH=.

src-tree-py() {
PYTHONPATH='.:vendor/' doctools/src_tree.py "$@"
}

install-deps() {
sudo apt-get install moreutils # for isutf8
}
@@ -141,7 +145,7 @@ all-html-to-files() {
log "=== $lang ==="

cat $BASE_DIR/$lang.txt | xargs _tmp/micro-syntax/micro_syntax -l $lang -w \
| doctools/src_tree.py write-html-fragments $out_dir
| $0 src-tree-py write-html-fragments $out_dir
log ''
done
}
@@ -184,7 +188,7 @@ highlight() {
time all-html-to-files $www_dir > $attrs

# Now write index.html dir listings
time doctools/src_tree.py dirs $www_dir < $attrs
time src-tree-py dirs $www_dir < $attrs
}

soil-run() {
1 change: 0 additions & 1 deletion doctools/util.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python2
"""util.py."""
from __future__ import print_function

import sys