Giter Club home page Giter Club logo

Comments (4)

a2geek avatar a2geek commented on July 2, 2024

You're giving AppleCommander a bit too much credit. ;-)

The file in Linux is a text file. When you placed it onto the disk, ac does not do any processing of it and essentially shoved a text file into what ProDOS thinks is a BAS program.

When the -e flag is used, ac tries to export the program in a sensible manner. For BAS it decodes the tokenized Applesoft program and writes it as text on your machine. Since it was already text, it (obviously) doesn't detokenize very well.

When the -g flag is used, ac just pulls the raw data and writes it to your machine as-is.

I recall seeing or reading about a program that can tokenize a text file, but I'm drawing a blank, unfortunately... if I can recall/find it in the next few days, I'll post a link!

from applecommander.

fanfani avatar fanfani commented on July 2, 2024

both "CiderPress" (https://github.com/fadden/ciderpress/) and "diskm8" (https://github.com/paleotronic/diskm8/) have an "import BAS from" text-tokenizing feature.

i think it would be cool to have it implemented in AppleCommander as CiderPress is GUI based and Windows-only (but works ok under wine) and diskm8 has its own - imvho serious - issues (see https://github.com/paleotronic/diskm8/issues) as of now.

can you flag this issue as a feature request ?

thank you! :-)

from applecommander.

a2geek avatar a2geek commented on July 2, 2024

Absolutely! Is this something you wanted to work on yourself? I'm more than willing to accept submissions.

I'm thinking that as a first stab, the assumption is that the AppleSoft code is "well formed". We don't need to mash our code into a single line any more, so spaces (literally!) aren't at a premium any more. I see that there are notes about special handling for AT/ATN (and more, I think). Requiring spaces between stuff would probably greatly simplify the effort.

from applecommander.

a2geek avatar a2geek commented on July 2, 2024

I did commit some prototype code the repository. General usage pattern is with the -bas flag following the same pattern that ac uses. I have done nothing with the GUI at this time ... not really certain it's needed there (thinking this is more a for development and likely ending up in scripts).

Example run:

$ cat test.bas | ac -bas dos.dsk test

Uploaded a Beta copy. Note that I had to GZip it to make GitHub happy!

from applecommander.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.