? 12-BASIC Programming Language (Page 1) ● SmileBASIC Source Forums

Sign In

Register
*Usernames are case-sensitive
Forgot my password
Contest results!

12-BASIC Programming Language

  • #1 ✎ 1507 12Me21 Admin Syntax Highlighter Received for creating the code syntax highlighter on SBS OSP Contest 2 Winner I won the second SmileBASIC Source OSP Contest! Programming Contest Second Year My account is over 2 years old Website I think people should realize that being terrible isn't a requirement for a BASIC dialect. It seems like most modern BASIC interpreters are focused on including features like GOTO, DATA, and weird syntax rules, rather than creating a language which is simple and easy to use. SB is far better than average, but still has flaws (no array literals?!?), and the fact that it's only available on the 3DS prevents it from becoming very popular. So, I decided to make my own BASIC dialect, with the interpreter written in JavaScript so it can run on any computer with a web browser. https://12me21.github.io/12-basic/ I don't like the name "12-BASIC", but of course I can't think of anything better. Oh well. Anyway it's nowhere near finished yet. Main features to implement: -user defined functions -proper variable declarations -arrays Here's some documentation: https://12me21.github.io/12-basic/docs/ Posted Edited by 12Me21
  • #2 ✎ 228 spaceturtles Video Games I like to play video games! Hobbies Avatar Block I didn't change my avatar for 30 days. Website Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Nice. Getting closer. Posted
  • #3 ✎ 60 seggiepants Is it bad that my first thought was of https://www.xkcd.com/927/? If you are going to add new features may I humbly suggest user defined types? Then you could do something like this: Type Point X As Integer Y As Integer End Type Dim position As Point Position.x = 42 Position.y = 13 QB/QuickBasic could do that back in the day. Speaking of which I think there is the QB64 project at http://www.qb64.net/. No use reinventing the wheel. The JavaScript back end sounds promising. A bit like Codepen https://codepen.io/. Speaking of which if you are going to be programming on the web it may be easier to just go for Javascript instead of detouring into BASIC. I think you can even make local applications with node js https://nodejs.org/en/. I should probably throw in a shout for p5js https://p5js.org/ as seen on the coding train too. I don't know what the current equivalent of the dragon book is . But I am not seeing any BNF on your github. I suspect you will need something like YACC/LEXX, Bison/Flex, ANTLR, or LLVM. Good luck. Posted
  • #4 ✎ 59 ninjagnu Can you create a separate repo for this? You can enable pages on any repo, not just your github.io one. Posted
  • #5 ✎ 1507 12Me21 Admin Syntax Highlighter Received for creating the code syntax highlighter on SBS OSP Contest 2 Winner I won the second SmileBASIC Source OSP Contest! Programming Contest Second Year My account is over 2 years old Website
    Can you create a separate repo for this? You can enable pages on any repo, not just your github.io one.
    Yeah, sure.
    Posted