Languages Features Calendar About Lists Add Language
GitHub icon



Cobra is a programming language created in 2006 by Charles Esterbrook.

Cobra is a general-purpose, object-oriented programming language. Cobra is designed by Charles Esterbrook, and runs on the Microsoft .NET and Mono platforms. It is strongly influenced by Python, C#, Eiffel, Objective-C, and other programming languages. Read more on Wikipedia...

Try now: TIO

#477on PLDB 16Years Old 431.0Users

Example code from hello-world:

class Hello def main print 'Hello World'

Example code from the Hello World Collection:

"""Hello world in Cobra""" class Hello def main print 'Hello, world.'

Example code from Wikipedia:

class Person var _name as String var _age as int cue init(name as String, age as int) _name, _age = name, age def toString as String is override return 'My name is [_name] and I am [_age] years old'

Language features

Feature Supported Example Token
Strings โœ“
'Hello world'
Print() Debugging โœ“ print
Semantic Indentation โœ“

Article source

PLDB - Build the next great programming language. v5.0.0 - Acknowledgements ยท Email ยท GitHub