From cf932d5c85620d79d92d9643eb6dc827b3189cf8 Mon Sep 17 00:00:00 2001 From: Paul Kimpel Date: Sun, 12 Mar 2017 08:15:16 -0700 Subject: [PATCH] 1. Commit proofing updates to BALGOL-Main and BALGOL-Overlay transcriptions. 2. Correct and reorder op code table in BAC-Assembler. 3. Commit tools/BAC-DeckGen.cmd script to generate card deck files from transcription files. 4. Add /Q (quiet mode) switch to BAC-Xscript-Reformatter.wsf, correct problem with output of last card. 5. Commit examples 2, 3, and 4 from BALGOL manual; commit corrections to example 1. --- .../Example-1-BALGOL-Typos.card | 16 +- .../BALGOL-Examples/Example-1-BALGOL.card | 6 +- .../BALGOL-Examples/Example-2-BALGOL.card | 77 +++++++ .../BALGOL-Examples/Example-3-BALGOL.card | 61 +++++ .../BALGOL-Examples/Example-4-BALGOL.card | 211 ++++++++++++++++++ software/BALGOL/BALGOL-Main.baca | 14 +- software/BALGOL/BALGOL-Overlay.baca | 36 +-- software/tools/BAC-Assembler.html | 98 ++++---- software/tools/BAC-DeckGen.cmd | 34 +++ software/tools/BAC-Xscript-Reformatter.wsf | 69 +++--- software/tools/README.txt | 7 +- 11 files changed, 517 insertions(+), 112 deletions(-) create mode 100644 software/BALGOL/BALGOL-Examples/Example-2-BALGOL.card create mode 100644 software/BALGOL/BALGOL-Examples/Example-3-BALGOL.card create mode 100644 software/BALGOL/BALGOL-Examples/Example-4-BALGOL.card create mode 100644 software/tools/BAC-DeckGen.cmd diff --git a/software/BALGOL/BALGOL-Examples/Example-1-BALGOL-Typos.card b/software/BALGOL/BALGOL-Examples/Example-1-BALGOL-Typos.card index 8f4cfa5..7b0e510 100644 --- a/software/BALGOL/BALGOL-Examples/Example-1-BALGOL-Typos.card +++ b/software/BALGOL/BALGOL-Examples/Example-1-BALGOL-Typos.card @@ -18,7 +18,7 @@ 2 BRESULTS (FOR I=(1,1,N); FOR J=(1,1,N); B(I,J)), 2 COEFFS (FOR NU=(4,4,N-1); HA(2NU-1)), 2 HFNRES (FOR K=(1,1,29); HFN(K)), -2 CRES(CONST), HFCNRES (TH, FOR K=(115); HFNC(K)), < 1 Then - lastSeq = Trim(args.Item(1)) + '-- Main Line -- + If Not fso.FileExists(fileName) Then + MsgBox "Transcription file does not exist: " & vbCrLf & fileName + WScript.Quit 8 Else - lastSeq = "09 0" + deckName = fso.BuildPath(fso.GetParentFolderName(fileName), fso.GetBaseName(fileName)) & ".card" + ExtractCode fileName, deckName + If not quietMode Then + MsgBox "BAC Assembler card deck created: " & vbCrLf & deckName + End If + + WScript.Quit 0 End If End If -Set args = Nothing - -'-- Main Line -- -If Not fso.FileExists(fileName) Then - MsgBox "Transcription file does not exist: " & vbCrLf & fileName -Else - deckName = fso.BuildPath(fso.GetParentFolderName(fileName), fso.GetBaseName(fileName)) & ".card" - ExtractCode fileName, deckName - MsgBox "BAC Assembler card deck created: " & vbCrLf & deckName -End If - Set fso = Nothing -WScript.Quit 0 - ]]> diff --git a/software/tools/README.txt b/software/tools/README.txt index fcb30f9..8e1d0e1 100644 --- a/software/tools/README.txt +++ b/software/tools/README.txt @@ -18,5 +18,10 @@ BAC-XScript-Reformatter.wsf assembly listing transcriptions and reformat them into card decks for use by BAC-Assembler.html +BAC-DeckGen.cmd + Windows command-line script to generate card decks for BAC-Assembler + from the transcribed *.baca files for the BALGOL compiler. + Paul Kimpel -January 2017 +March 2017 +