This article's use of external links may not follow Wikipedia's policies or guidelines.(March 2017)
|Developer||Vrije Universiteit Brussel|
Pico is a programming language developed at the Software Languages Lab at Vrije Universiteit Brussel. The language was created to introduce the essentials of programming to non-computer science students.
Pico can be seen as an effort to generate a palatable and enjoyable language for people who do not want to study hard for the elegance and power of a language. They have done it by adapting Scheme's semantics.
While designing Pico, the Software Languages Lab was inspired by the Abelson and Sussman's book "Structure and Interpretation of Computer Programs". Furthermore, they were influenced by the teaching of programming at high school or academic level.
Pico should be interpreted as 'small', the idea was to create a small language for educational purposes.
Comments are surrounded by backquotes ("`").
Functions are first-class objects in Pico. They can be assigned to variables. For example a function with two parameters param1 and param2 can be defined as:
func(param1, param2): ...
Functions can be called with the following syntax:
Operators can be used as prefix or infix in Pico:
+(5, 2) 5 + 2
It does not have a native char type, so users should resort to size 1 strings.
Tables are compound data structures that may contain any of the regular data types.
Boolean types are represented by functions (as in lambda calculus).
Only the usual if statement is included
if(condition, then, else)
display('Hello World', eoln)
max(a, b): if(a < b, b, a)
`` foo(n): fun(i): n := n+i
Edited: 2021-06-18 18:16:16