Announcing Basic Language With Graphics (Beta)
amasad (2407)

Hey everyone!

I've been working on a classic BASIC language inspired by Microsoft Atari Basic. It comes with a 50x50 display by default and makes it really easy to draw things and make games. The language is still in Beta and I'll be improving it over the coming weeks. For now here is the documentation and a sample snake game that I found on the internet and modified to make it work here. Please let me know what you think.

If you're curious you can find the source code for the interpreter here (https://repl.it/@amasad/pg-basic). Feel free to fix bugs and send patches.

[update] Docs moved here: https://docs.repl.it/misc/basic

[update 2] Changelog:

  • You can now use variables with multiple letters
  • LET is optional. You can define variables like so 10 X = 1
  • TEXT lets you draw text on the screen (refer to docs)
  • Display is now automatically focused after the program is run
  • GETCHAR handles long-presses better

[update 3] Changelog:

  • You can now create multidimensional arrays ARRAY a, 2
  • You can now draw an entire grid with one call DRAW
  • Refer back to docs
You are viewing a single comment. View All
StudentFires (327)

Although many may not fully agree with me, it has always seemed redundant to put parenthesis when calling a parameter-less function, so, since your making the language, can you change this, or are you trying to properly emulate BASIC? The only language I've seen do this is PineCone.
https://pinecone-lang.herokuapp.com

Also... do you support user-defined functions yet?

amasad (2407)

@StudentFires I'm not a big fan of optional syntax because it makes it hard for newbies to know when to use it or when to not use it. The more you add options to a language the harder it is to learn, I think.

StudentFires (327)

@amasad Yeah I thought you'd say something like that, but what about the second part of my question on user-defined functions?

[deleted]

@StudentFires oooh, pinecone. Finally somebody else that knows pinecone

JadenGarcia (37)

@roylatgnail Does Pinecone really not require parenthesis if a function lascks parameters!?