Re: [M100] - Text Sweet 2.3 Release

2023-03-03 Thread B 9
On Fri, Mar 3, 2023 at 1:44 AM John R. Hogerhuis wrote: > > Modern structured programming language designers endeavor to make > them context free. Which just means they can be described fully by a > context free grammar, like BNF. Programming languages are all parseable, > but where they deviate

Re: [M100] - Text Sweet 2.3 Release

2023-03-03 Thread Brian White
basic is parsable, obviously the interpreter has to do it, but the difference is to parse basic you pretty much need a state machine, pretty much the same way the actual interpreter works. You can't really determine what any given digit or double-quote or almost anything is, except by starting

Re: [M100] - Text Sweet 2.3 Release

2023-03-03 Thread John R. Hogerhuis
On Fri, Mar 3, 2023 at 12:47 AM B 9 wrote: > On Wed, Mar 1, 2023 at 11:00 PM John R. Hogerhuis > wrote: > >> >> You know a heckuva lot more than I do, John. I had just presumed any > computer language was parsable. > > Modern structured programming language designers endeavor to make them

Re: [M100] - Text Sweet 2.3 Release

2023-03-03 Thread B 9
On Wed, Mar 1, 2023 at 11:00 PM John R. Hogerhuis wrote: > Well, for ANSI C 99 lex is probably the best way. C doesn't (didn't?) have > any regex engine. I don't know what's in modern C, it might have libraries > for regex. > I've used the PCRE library in C, which works but is not as nice as a

Re: [M100] - Text Sweet 2.3 Release

2023-03-02 Thread Brian K. White
On 3/2/23 07:31, Brian K. White wrote: On 3/1/23 20:05, B 9 wrote: , |egrep -io '(GO\s*TO|GOSUB|THEN|ELSE|RESTORE|RESUME|RETURN|RUN)(\s*,?\s*[0-9]+)+' | As you can see, I had missed exactly the same subtlety as reseq.

Re: [M100] - Text Sweet 2.3 Release

2023-03-02 Thread Brian K. White
On 3/1/23 20:05, B 9 wrote: , |egrep -io '(GO\s*TO|GOSUB|THEN|ELSE|RESTORE|RESUME|RETURN|RUN)(\s*,?\s*[0-9]+)+' | As you can see, I had missed exactly the same subtlety as reseq. And yet I see you are handling things

Re: [M100] - Text Sweet 2.3 Release

2023-03-01 Thread John R. Hogerhuis
Well, for ANSI C 99 lex is probably the best way. C doesn't (didn't?) have any regex engine. I don't know what's in modern C, it might have libraries for regex. As you say lex is a "friendly wrapper around regular expressions." But all it really does is make a giant regex/state machine with

Re: [M100] - Text Sweet 2.3 Release

2023-03-01 Thread B 9
On Wed, Mar 1, 2023 at 9:39 AM John R. Hogerhuis wrote: > Parser systems are less work than they're worth. But lexer systems, not so > much. > Modern languages have advanced regular expression systems which are equal > in power to a lexer. Might as well just use a big regex to lex your tokens. >

Re: [M100] - Text Sweet 2.3 Release

2023-03-01 Thread Brian White
127 or 128 so is the limit that the interactive editor can handle, while the interpreter can handle up to 254 or 255 if you're just executing and not editing. bkw On Wed, Mar 1, 2023, 8:15 PM B 9 wrote: > On Wed, Mar 1, 2023 at 6:39 AM Brian K. White b.kenyo...@gmail.com >

Re: [M100] - Text Sweet 2.3 Release

2023-03-01 Thread B 9
On Wed, Mar 1, 2023 at 6:39 AM Brian K. White b.kenyo...@gmail.com wrote: > I also wrote a renumberer and packer in bash (actually in awk too before > that, still in the repo in the "attic") > > https://github.com/bkw777/BA_stuff > Okay, that’s freaking

Re: [M100] - Text Sweet 2.3 Release

2023-03-01 Thread John R. Hogerhuis
On Tue, Feb 28, 2023, 6:49 PM B 9 wrote: > > > On Tue, Feb 28, 2023 at 4:55 PM grima...@gmail.com > wrote: > >> Thanks all! >> >> At some point I’ll look into adding Tokenization directly into Github. >> > > Awesome. It looks like compiling and running a C program may be trivial in > the yaml

Re: [M100] - Text Sweet 2.3 Release

2023-03-01 Thread Brian K. White
I also wrote a renumberer and packer in bash (actually in awk too before that, still in the repo in the "attic") https://github.com/bkw777/BA_stuff The interface could be improved to operate on normal commandline arguments instead of env variables and only piping stdin and stdout. The

Re: [M100] - Text Sweet 2.3 Release

2023-02-28 Thread grima...@gmail.com
I used Renum1 from Club100 library. I have inspected the tokenized BA in a hex editor. As far as I can tell, line numbers aren’t really compressed in any way. So in my original program, most of my line numbers were between 1000-3, and each reference to them was 4-5 bytes. Now most of my

Re: [M100] - Text Sweet 2.3 Release

2023-02-28 Thread B 9
On Tue, Feb 28, 2023 at 6:40 PM B 9 hacke...@gmail.com wrote: By the way, a tokenizer should be able to reduce the file size dramatically > by simply omitting the string after REM statements. Having it remove > vestigial lines completely would be slightly

Re: [M100] - Text Sweet 2.3 Release

2023-02-28 Thread B 9
On Tue, Feb 28, 2023 at 4:55 PM grima...@gmail.com wrote: > Thanks all! > > At some point I’ll look into adding Tokenization directly into Github. > Awesome. It looks like compiling and running a C program may be trivial in the yaml file: - uses: actions/checkout@v3 - run: | make

Re: [M100] - Text Sweet 2.3 Release

2023-02-28 Thread grima...@gmail.com
I work for a relatively major fintech company, and we have used GitHub actions at scale to automate a ton of workflows, some examples include: - code and file validation. - unit testing. - cloud infrastructure deployment. Github Actions are just a good way to automate and glue together different

Re: [M100] - Text Sweet 2.3 Release

2023-02-28 Thread Joshua O'Keefe
> On Feb 28, 2023, at 11:21 AM, B 9 wrote: > Last year I wrote a tokenizer in C. ¹ [well, lexx] > https://github.com/hackerb9/tokenize > Thank you for reminding me of this! I was trying to remember it and it was the lexx I wanted!

Re: [M100] - Text Sweet 2.3 Release

2023-02-28 Thread B 9
On Tue, Feb 28, 2023 at 11:03 AM B 9 wrote: > Last year I wrote a tokenizer in C. ¹ > > https://github.com/hackerb9/tokenize > Addendum: the binaries it generates work fine on actual machines, but Virtual T is overly persnickety about the memory pointers. I'd forgotten about this as I patched my

Re: [M100] - Text Sweet 2.3 Release

2023-02-28 Thread B 9
On Mon, Feb 27, 2023 at 7:51 AM grima...@gmail.com grima...@gmail.com wrote: Currently I’m using VS Code and Virtual T in tandem to develop. It would be > great if there were a modern tokenizer and packer written in Python or > similar. Last year I wrote a

Re: [M100] - Text Sweet 2.3 Release

2023-02-27 Thread MikeS
Is that tokenizer Bob Pigford's version? AFAIK it was the latest and best of the various versions out there. m - Original Message - From: grima...@gmail.com To: m...@bitchin100.com Sent: Monday, February 27, 2023 7:42 AM Subject: Re: [M100] - Text Sweet 2.3 Release

Re: [M100] - Text Sweet 2.3 Release

2023-02-27 Thread John R. Hogerhuis
You could try CloudT as a tokenizer. But it is probably something very simple happening in the text editor. Extra blankline, encoding or something. -- John.

Re: [M100] - Text Sweet 2.3 Release

2023-02-27 Thread grima...@gmail.com
Thanks for the feedback! I’ll try to look into that line terminator business and see whats going on. Currently I’m using VS Code and Virtual T in tandem to develop. It would be great if there were a modern tokenizer and packer written in Python or similar. Then you could tie it in with github

Re: [M100] - Text Sweet 2.3 Release

2023-02-26 Thread Stephen Adolph
hey works great!!! thanks George. I'm using my (updated!) MVT100 Desktop terminal emulator to play Tsweep! steve On Sun, Feb 26, 2023 at 6:02 PM grima...@gmail.com wrote: > Hi Steve, > > I updated it again. I think I accidentally uploaded the wrong file > initially. > >

Re: [M100] - Text Sweet 2.3 Release

2023-02-26 Thread Stephen Adolph
Thank you! Can't test until later tonight. When I transfer the .do file to my m100 it has some strange line terminators. I use mComm to transfer. I'll check it out more closely later. Steve On Sunday, February 26, 2023, grima...@gmail.com wrote: > Hi Steve, > > I updated it again. I think

Re: [M100] - Text Sweet 2.3 Release

2023-02-26 Thread grima...@gmail.com
Hi Steve, I updated it again. I think I accidentally uploaded the wrong file initially. https://github.com/Grimakis/TextSweeper/releases/tag/2.5.1-beta.2 https://imgur.com/a/JyLsAdX I’ve linked photos of how it renders on a real DVI. The above is how I have intended it to look. Let me know if

Re: [M100] - Text Sweet 2.3 Release

2023-02-26 Thread Stephen Adolph
thanks George. I loaded it (.BA version, the .DO version won't load clean. Runs, but the controls are on top of the bottom half of the board. but I can see it coming together! cheers and thanks Steve On Sun, Feb 26, 2023 at 4:41 PM grima...@gmail.com wrote: > Hi Steve, > >

Re: [M100] - Text Sweet 2.3 Release

2023-02-26 Thread grima...@gmail.com
Hi Steve, https://github.com/Grimakis/TextSweeper/releases/tag/2.5.1-beta.1 I just put together a pre-release of 2.5.1, which I have tested against the original DVI hardware and it works now in both 40 col and 80 col mode. Feel free to check it out with your DVI Work Alike solution, and let me

Re: [M100] - Text Sweet 2.3 Release

2023-02-26 Thread Stephen Adolph
[image: ResizerImage574X765.jpg] yes, I have done a lot of work on making an external 80column video solution that is a "DVI work alike" accessible without actually having a DVI. First you need some driver software on the M100. 1) VT100 driver - found here -->

Re: [M100] - Text Sweet 2.3 Release

2023-02-26 Thread grima...@gmail.com
I see, when you say your DVI software do you mean the software that emulates the DVI itself? Modifying the print statements is definitely doable, and I can add that to my TODOs. However, as someone who uses the DVI, I personally do like the 40 column mode. Being able to switch between 40 and 80

Re: [M100] - Text Sweet 2.3 Release

2023-02-26 Thread Stephen Adolph
Textsweeper was going to be my fun to use test case to make sure my DVI emulator code for windows was working well. Since the only drivers that send video data over serial are my own 2 programs (1 = VT100 driver for M100 or 2 = REX#/REXCPM) and since those adaptations of the Disk Video Interface

Re: [M100] - Text Sweet 2.3 Release

2023-02-26 Thread Stephen Adolph
my stuff doesn't support 40 columns. that's why I was asking! To me, 40 column mode on the DVI seems silly, but that's just me. Anyways, if you don't want to adapt the print@ statements, I get it. thanks anyways. On Sun, Feb 26, 2023 at 2:40 PM grima...@gmail.com wrote: > I think the way I

Re: [M100] - Text Sweet 2.3 Release

2023-02-26 Thread grima...@gmail.com
I think the way I would prefer to handle it would be to check the initial setting of 40/80 when the program starts, switch the screen to 40, and then switch back on exit. Do you know is there a way to switch to 40 columns mode without calling WIDTH? I assume if I use any keywords exclusive to

Re: [M100] - Text Sweet 2.3 Release

2023-02-26 Thread Stephen Adolph
George, I think it would be fine to use only 40 columns. just make it tolerate 80 cols wide. (all of my DVI software assumes 80 columns). thoughts? Steve On Sun, Feb 26, 2023 at 2:09 PM grima...@gmail.com wrote: > Hi Steve, > > As of right now, it’s supporting only 40col mode. > > Currently,

Re: [M100] - Text Sweet 2.3 Release

2023-02-26 Thread grima...@gmail.com
Hi Steve, As of right now, it’s supporting only 40col mode. Currently, the way I am taking advantage of the DVI and T200 larger displays are to have the Controls/Help screen displayed below the game screen (preventing the need to switch between the two) As others have mentioned, I could allow

Re: [M100] - Text Sweet 2.3 Release

2023-02-26 Thread Stephen Adolph
George, for DVI use, is that intended for 40 columns? Is there a way you could put in a switch to enable 80 column mode? thx steve On Sat, Feb 11, 2023 at 8:15 PM grima...@gmail.com wrote: > Hi all, > > As previously mentioned, I have been working on Text Sweeper again. I've > made a bunch of

[M100] - Text Sweet 2.3 Release

2023-02-11 Thread grima...@gmail.com
Hi all, As previously mentioned, I have been working on Text Sweeper again. I've made a bunch of changed behind the scenes, but the things that will be noticeable to you: - Slight graphical changes. - Better mine generation for denser minefield. - Controls can be seen by pressing H