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

Replace broken decommenter script with a lexer (tandy-decomment) #55

Open
wants to merge 54 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
901ef81
Fix for ONAGOSUB310,311,312,, ,, 316,317,318,319
hackerb9 Mar 1, 2023
89ac6f4
Convert unix newline to DOS CRNL
hackerb9 Mar 5, 2023
855cfac
Mark .BA files as binary, likewise M100LE.DO (generated from M100LE+c…
hackerb9 Feb 19, 2024
b97cd86
Remove generated files
hackerb9 Feb 23, 2024
2db78d1
Replace decommenting script with proper lexer
hackerb9 Feb 23, 2024
c0c04a9
hackerb9's tokenizer program in C (generated by flex)
hackerb9 Feb 23, 2024
b94a451
Delete shell script as tandy-decomment works better
hackerb9 Feb 23, 2024
dcafb18
Makefile for compiling tandy-tokenize
hackerb9 Feb 25, 2024
4bd6eac
Automatically compile and use hackerb9's tokenizer
hackerb9 Feb 25, 2024
e24fa81
Ignore generated binaries
hackerb9 Feb 25, 2024
2802c2c
Ignore generated binaries
hackerb9 Feb 25, 2024
b26ee75
Update with newer version of b9's tokenizer
hackerb9 Mar 9, 2024
d0e9873
Output from flex
hackerb9 Mar 9, 2024
c5be5a8
Update to latest tokenizer
hackerb9 Mar 9, 2024
35d75ef
awk script to sort/uniq BASIC lines
hackerb9 Mar 9, 2024
c09c530
Renamed from tandy- to m100-
hackerb9 Mar 12, 2024
b9de3ff
Save another kilobyte by crunching as well as decommenting
hackerb9 Mar 12, 2024
97eb954
wrapper for all m100-* programs
hackerb9 Mar 12, 2024
5970181
Fix up PATH
hackerb9 Mar 12, 2024
cb2c83a
Use tokenize script
hackerb9 Mar 12, 2024
351be99
Update tokenizer to v1.1.1 from github.com/hackerb9/tokenize
hackerb9 Mar 13, 2024
e6241d0
Run 'make archive' to create tar and zip files for distribution
hackerb9 Mar 14, 2024
961ff98
Run a test compile whenever a 'git push' is done
hackerb9 Mar 14, 2024
6c77401
Create a new release whenever a new tag is pushed
hackerb9 Mar 14, 2024
8c821eb
Git shouldn't care about archive files
hackerb9 Mar 14, 2024
d15ee0d
make clean should remove the archive files .tar.gz, .zip
hackerb9 Mar 14, 2024
7a70c89
Ugh. Yaml is silly about tabs.
hackerb9 Mar 14, 2024
d72ee13
Build on push to any branch
hackerb9 Mar 14, 2024
64bd6be
Compile m100-jumps as well
hackerb9 Mar 14, 2024
a056d16
Simplify using implicit rules.
hackerb9 Mar 14, 2024
89bc6d5
Github action should run on tags matching v*.*.*
hackerb9 Mar 14, 2024
8865ddf
Huh? GitHub Actions are not getting triggered.
hackerb9 Mar 14, 2024
399bc2e
Frivolous change to see if github actions are triggered
hackerb9 Mar 14, 2024
fa03df2
A GitHub action to run make on a virtual Macintosh
hackerb9 Mar 14, 2024
f84a23f
Also test building the tar and zip files
hackerb9 Mar 14, 2024
a7f8757
a kludge to make tar --xform "work" on MacOS
hackerb9 Mar 14, 2024
cbf4e40
Does github let me brew install?
hackerb9 Mar 14, 2024
034de34
MacOS homebrew experiment #1
hackerb9 Mar 14, 2024
951b9bc
MacOS brew's GNU AWK is named gawk
hackerb9 Mar 14, 2024
8468fb3
Yikes! brew on MacOS is going crazy
hackerb9 Mar 14, 2024
f4ae21d
Oh, gtar is installed. What version?
hackerb9 Mar 14, 2024
6c1fd4d
MacOS already has gtar in /usr/local/bin?
hackerb9 Mar 14, 2024
ca99136
Only need to 'brew install gawk'
hackerb9 Mar 14, 2024
178067f
Put the GNU tools first in the PATH for MacOS
hackerb9 Mar 14, 2024
7529f14
Use $(CC) instead of gcc for MacOS
hackerb9 Mar 14, 2024
1fa5199
rename awk to gawk as MacOS is being a silly goose
hackerb9 Mar 14, 2024
9d19520
Remove explicit call to cc in hope MacOS will figure it out
hackerb9 Mar 14, 2024
7cf4f92
MacOS is still giving guff
hackerb9 Mar 14, 2024
ca6075d
Try also installing gcc on MacOS, which is goofy
hackerb9 Mar 14, 2024
329aebe
Okay, so MacOS brew already has gcc, but where?
hackerb9 Mar 14, 2024
ff4c11d
Batch processing on a Mac is tiresome
hackerb9 Mar 14, 2024
f3a7ebc
Try adding /usr/local/opt to $GITHUB_PATH
hackerb9 Mar 14, 2024
588d32b
Try to force MacOS to find tar and awk in Brew's locations first
hackerb9 Mar 14, 2024
a6a42b8
Remove MacOS experiments
hackerb9 Mar 14, 2024
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
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
*.DO eol=crlf
*.BA binary
# M100LE.DO is generated from M100LE+comments.DO
M100LE.DO binary
17 changes: 17 additions & 0 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: C/C++ CI

on:
push:
pull_request:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: make
run: make
- name: Create tar and zip files
run: make archive
20 changes: 20 additions & 0 deletions .github/workflows/mac-make.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: MacOS compilation test

on:
push:
pull_request:

jobs:
build:

runs-on: macos-latest

steps:
- uses: actions/checkout@v3
- name: Install GNU awk
run: |
brew install gawk
- name: make
run: make
- name: Create tar and zip files
run: make archive
26 changes: 26 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: release

on:
push:

jobs:
build_release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Make
run: make
- name: Create tar and zip files
run: make archive
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
m100le.tar.gz
m100le.zip
M100LE.BA
WL*.CO
M100LE+comments.DO
M100LE+comments.BA
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

.DS_Store
.DS_Store
*.BA
*.tar.gz
*.zip
Binary file removed CMPRSS.BA
Binary file not shown.
Binary file removed M100LE+comments.BA
Binary file not shown.
Binary file removed M100LE.BA
Binary file not shown.
295 changes: 0 additions & 295 deletions M100LE.DO

This file was deleted.

Loading