r/computerscience • u/PryanikXXX • Nov 10 '25
General What can be considered a programming language?
From what I know, when talking about programming languages, we usually mean some sort of formal language that allows you to write instructions a computer can read and execute, producing an expected output.
But are there any specific criteria on here? Let's say a language can model only one single, simple algorithm/program that is read and executed by a computer. Can it be considered a programming language?
By a single and simple algorithm/program, I mean something like:
- x = 1
or, event-driven example:
- On Join -> Show color red
And that's it, in this kind of language, there would be no other possible variations, but separate lexemes still exist (x, =, 1), as well as syntax rules.
View all comments
Show parent comment
3
u/Heapifying Nov 10 '25
Say for example ASM, which is a language.
You dont have a "return <expr>" statement to differentiate the output.
The convention is to use ax (x86) as the output.
So effectively, in ASM,
mov ax 1 ret
Would be an equivalent program to
X = 1
Anyway, you can create any toy language you want without a return statement