Top 1,000 Features Creators Resources Extensions Blog Explorer CSV Download
GitHub icon


< >

LPC, aka Lars Pensjö C, is a programming language created in 1995 by Lars Pensjö.

#778on PLDB 29Years Old

LPC (short for Lars Pensjö C) is an object-oriented programming language derived from C and developed originally by Lars Pensjö to facilitate MUD building on LPMuds. Though designed for game development, its flexibility has led to it being used for a variety of purposes, and to its evolution into the language Pike. LPC syntax places it in the family of C-like languages, with C and C++ its strongest influences.. Read more on Wikipedia...

// Hello World in LPC void create() { message("info","Hello World!",this_user()); }
Example from Wikipedia:
function op = (: return sqrt($1 * $1 + $2 * $2); :);

Language features

Feature Supported Token Example
Comments ‚úď
// A comment
Line Comments ‚úď //
// A comment
Semantic Indentation X

View source

- Build the next great programming language · About · Acknowledgements · Published by Breck's Lab