Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

BASIC

< >

BASIC, aka Beginner's All-purpose Symbolic Instruction Code, is a programming language created in 1964 by John G. Kemeny and Thomas E. Kurtz.

#151on PLDB 60Years Old 829Repos
REPL · Wikipedia · Docs

BASIC (an acronym for Beginner's All-purpose Symbolic Instruction Code) is a family of general-purpose, high-level programming languages whose design philosophy emphasizes ease of use. In 1964, John G. Kemeny and Thomas E. Read more on Wikipedia...


Example from Riju:
PRINT "Hello, world!"
Example from hello-world:
10 PRINT "Hello World" 20 END
10 REM Hello World in BASIC 20 PRINT "Hello World!"
Example from Wikipedia:
Public Class StarsProgram Public Shared Sub Main() Dim UserName, Answer, stars As String, NumStars As Integer Console.Write("What is your name: ") UserName = Console.ReadLine() Console.WriteLine("Hello {0}", UserName) Do Console.Write("How many stars do you want: ") NumStars = CInt(Console.ReadLine()) stars = New String("*", NumStars) Console.WriteLine(stars) Do Console.Write("Do you want more stars? ") Answer = Console.ReadLine() Loop Until Answer <> "" Answer = Answer.Substring(0, 1) Loop While Answer.ToUpper() = "Y" Console.WriteLine("Goodbye {0}", UserName) End Sub End Class

Language features

Feature Supported Example Token
Strings ✓ "Hello world" "
Case Insensitive Identifiers ✓
Print() Debugging ✓ PRINT
Line Comments ✓ REM A comment REM
Gotos ✓ 10 REM This BASIC program shows the use of the PRINT and GOTO Statements. 15 REM It fills the screen with the phrase "HELLO" 20 PRINT "HELLO" 30 GOTO 20
Comments ✓ REM This BASIC program shows the use of the PRINT and GOTO Statements.
Case Sensitivity X
Semantic Indentation X
Operator Overloading X

- Build the next great programming language · Add · About · Search · Keywords · Livestreams · Labs · Resources · Acknowledgements

Built with Scroll v144.0.0