Pike is an open source programming language created in 1994 by Fredrik Hübinette.
#505on PLDB | 30Years Old | 145Repos |
Pike is an interpreted, general-purpose, high-level, cross-platform, dynamic programming language, with a syntax similar to that of C. Unlike many other dynamic languages, Pike is both statically and dynamically typed, and requires explicit type definitions. It features a flexible type system that allows the rapid development and flexible code of dynamically typed languages, while still providing some of the benefits of a statically typed language. Read more on Wikipedia...
int main()
{
write("Hello, world!\n");
return 0;
}
int main() {
write("Hello World\n");
return 0;
}
// Hello world in Pike (pike.roxen.com)
int main(){
write("Hello World!\n");
}
#!/usr/bin/env pike
int main(int argc, array argv) {
return 0;
}
mixed anything;
anything = (int)5.5; // anything is now the integer value 5
anything = (string)anything; // anything is now the string value "5"
Feature | Supported | Example | Token |
---|---|---|---|
Print() Debugging | ✓ | write | |
Line Comments | ✓ | // A comment | // |
Macros | ✓ | #define CYCLES 20 | |
Comments | ✓ | ||
Semantic Indentation | X |