? Submit Example SB4 Programs / My Direction for an Interpreter (Page 1) ● SmileBASIC Source Forums

Sign In

Register
*Usernames are case-sensitive
Forgot my password
What's going on?? See: Site Update March 2022

Submit Example SB4 Programs / My Direction for an Interpreter

  • #1 ✎ 40 Chatter I've decided once again to attempt a SmileBASIC 4 interpreter in Lua. The design I've settled on is:
    1. Written in Lua, using LuaJIT.
    2. Lexing and parsing using LPeg.
    3. Input/output using SDL2.
    So, the first step will be writing a lexer and parser using LPeg. SmileBASIC's grammar isn't published, so I plan to do this by looking at other BASIC grammars as well as SB4 programs until the parser can correctly parse SmileBASIC 4 programs. Since SBAPI is down, I would appreciate if anyone could submit SmileBASIC 4 programs. Ideally, they would be representative of a real, actually useful SmileBASIC 4 program, and would not use self-modifying code (not important at this stage, but I plan to use these same programs later to test the full interpreter).
    Posted Edited by Chatter
  • #2 ✎ 123 kitesinpowerlines Avatar Block I didn't change my avatar for 30 days. Website Avatar Embargo I didn't change my avatar for 90 days Website Avatar Taboo I didn't change my avatar for 180 days Website
    Since SBAPI is down, I would appreciate if anyone could submit SmileBASIC 4 programs.
    Bröther, we’ve been trying to get people to submit SB4 programs for years now
    Ideally, they would be representative of a real, actually useful SmileBASIC 4 program
    What do you mean “actually useful SmileBASIC 4 programs?”
    Posted
  • #3 ✎ 341 Minxrod Third Year My account is over 3 years old Website Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength QSP Contest 2 Contest Participant I participated in the second SmileBASIC Source QSP Contest! Good luck! You might be able to use SB3 programs to start. The languages should be pretty similar, even if some commands changed. Posted
  • #4 ✎ 40 Chatter
    Since SBAPI is down, I would appreciate if anyone could submit SmileBASIC 4 programs.
    Bröther, we’ve been trying to get people to submit SB4 programs for years now
    Ideally, they would be representative of a real, actually useful SmileBASIC 4 program
    What do you mean “actually useful SmileBASIC 4 programs?”
    A program that uses enough features of the language such that the ability to run it would indicate a reasonable likelihood of success with running any given program.
    Posted
  • #5 ✎ 1133 snail_ Power User QSP Contest 1 Contest Participant I participated in the first SmileBASIC Source QSP Contest! Helper Received for being very helpful around SmileBASIC Source Achievements Amazing Contributor Someone thinks I'm an awesome person who has done so much for the community! Achievements Is it really a good idea to clone a piece of proprietary software that is still for commercial sale? Posted
  • #6 ✎ 40 Chatter Could you please elaborate on that? Posted
  • #7 ✎ 396 CyberYoshi64 Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength Great Page Hidden Achievements Night Person I like the quiet night and sleep late. Express Yourself SmileBoom may not like you making a replica of SmileBASIC 4, as you may take away sales, when your interpreter can do anything that the official interpreter can. SmileBASIC 3 would be a better target, since the eShop is soon closing and is generally considered dead as of 2022 but SmileBASIC 4 might be too far fetched for now. Posted