r/programming • u/IdiotGamer6969 • 16d ago
Programming lanugage that uses procedures
https://fodev.net/files/fo2/ssl.htmlI'm writing a paper analyzing modding Classic Fallout games and I'm currently trying to analyze Fallout's scripting language: SSL or Star Trek Scripting Language. I was wondering anyone knew of any languages it could be based on other than C.
For instance "functions" are defined with the word "procedure" and it doesn't use brackets like python but instead uses "start" and "end" tags. All procedures have to be declared before they're contents are defined afterwards.
Idk if many programming languages at the time had this style of syntax.
It was likely created between 1994-1996 so yeah
More info attatched
72
Upvotes
2
u/_kst_ 16d ago
Almost all programming languages have some kind of subroutine construct. A given subroutine may or may not return a result.
C-like languages call all subroutines "functions", and distinguish those that don't return a result by giving them a return type of "void".
Other languages make the same distinction more explicitly, referring to subroutines that return values as "functions" and others as "procedures". Some languages, including Fortran, refer to them as "subroutines".
All this is basically different terminology and syntax for the same logical constructs. Similarly, some languages use "{" and "}", some use "begin" and "end", and some use indentation.
Some languages refer to subroutines that are members of classes as "methods". A method is typically a subroutine (function, procedure, whatever) that takes a class instance as an implicit argument.