Submit Example SB4 Programs / My Direction for an Interpreter
#1✎ 40ChatterI've decided once again to attempt a SmileBASIC 4 interpreter in Lua. The design I've settled on is:
Written in Lua, using LuaJIT.
Lexing and parsing using LPeg.
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✎ 123kitesinpowerlinesAvatar BlockI didn't change my avatar for 30 days.WebsiteAvatar EmbargoI didn't change my avatar for 90 daysWebsiteAvatar TabooI didn't change my avatar for 180 daysWebsite
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✎ 341MinxrodThird YearMy account is over 3 years oldWebsiteExpert ProgrammerProgramming no longer gives me any trouble. Come to me for help, if you like!Programming StrengthQSP Contest 2 Contest ParticipantI 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
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✎ 1133snail_Power UserQSP Contest 1 Contest ParticipantI participated in the first SmileBASIC Source QSP Contest!HelperReceived for being very helpful around SmileBASIC SourceAchievementsAmazing ContributorSomeone thinks I'm an awesome person who has done so much for the community!AchievementsIs it really a good idea to clone a piece of proprietary software that is still for commercial sale?
Posted
#6✎ 40ChatterCould you please elaborate on that?
Posted
#7✎ 396CyberYoshi64Expert ProgrammerProgramming no longer gives me any trouble. Come to me for help, if you like!Programming StrengthGreat PageHiddenAchievementsNight PersonI like the quiet night and sleep late.Express YourselfSmileBoom 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