Measures Concepts
GitHub icon

BASIC

BASIC - Programming language

< >

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

#60on PLDB 60Years Old 829Repos

Try now: Riju

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 Token Example
Strings ✓ "
"Hello world"
Case Insensitive Identifiers ✓
Print() Debugging ✓ PRINT
Line Comments ✓ REM
REM A comment
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

View source

- Build the next great programming language · Search · Add Language · Features · Creators · Resources · About · Blog · Acknowledgements · Queries · Stats · Sponsor · Day 605 · feedback@pldb.io · Logout