Questions Concepts
GitHub icon

LPC

LPC - Programming language

< >

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

#570on PLDB 28Years 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 · Search · Add Language · Features · Creators · Resources · About · Blog · Acknowledgements · Queries · Stats · Sponsor · Traffic · Traffic Today · Day 305 · feedback@pldb.com · Logout