Linux
Welcome to c/linux!
Welcome to our thriving Linux community! Whether you're a seasoned Linux enthusiast or just starting your journey, we're excited to have you here. Explore, learn, and collaborate with like-minded individuals who share a passion for open-source software and the endless possibilities it offers. Together, let's dive into the world of Linux and embrace the power of freedom, customization, and innovation. Enjoy your stay and feel free to join the vibrant discussions that await you!
Rules:
-
Stay on topic: Posts and discussions should be related to Linux, open source software, and related technologies.
-
Be respectful: Treat fellow community members with respect and courtesy.
-
Quality over quantity: Share informative and thought-provoking content.
-
No spam or self-promotion: Avoid excessive self-promotion or spamming.
-
No NSFW adult content
-
Follow general lemmy guidelines.
view the rest of the comments
String arrays are a must, and you'll have to be able to keep open several different files at once. How about DATA/READ/RESTORE statements?
I will consider those, thanks for the input. - I have constrained myself: Each statement starts with a unique letter, just to make parsing a tiny bit easier. Also so far I don't have file input - only output to files - for printing on a printer or sending to gnuplot perhaps. That does not mean I can't have an OPEN "filename",r to replace stdin temporarily.
Quick complete parsing of a fixed set of keywords can easily be done with a finite state automaton.
"Mat $strings(400)" gives you $strings(0) .. $strings(399) just like C, You can do two dimensonal strig arrays also. Please look over the remaining unused letters and let me know how you would integrate DATA statement. Remember, I am keeping the first letter unique.
for string arrays -- MAT $BOX(3,5) == 15 CHARACTERS OR 15 STRINGS ? I think it does the latter already. Note, I am nearly 70 years old - I got "help" coding this. (oh noe here comes a storm)
MAT [dollar]BOX(3,5) should give a two-dimensional array of strings, of course.
Good I think that is the case.
Actually, it was not the case, but it is the case now.