PLDB
Languages Features Calendar CSV Lists Blog About Sponsor Add Language
GitHub icon

Cobra

Cobra

Cobra is a pl created in 2006 by Charles Esterbrook.

#650on PLDB 16Years Old 431Users
1Books 0Papers

Try now: TIO

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...


Example from hello-world:
class Hello def main print 'Hello World'
Example from the Hello World Collection:
"""Hello world in Cobra""" class Hello def main print 'Hello, world.'
Example 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

Books about Cobra from ISBNdb

title authors year publisher
Cobra (programming Language From Cobra Language Llc) Surhone and Lambert M. and Timpledon and Miriam T. and Marseken and Susan F. 2010
xproc.html · cobra.html · dm.html

View source

PLDB - Build the next great programming language · v2022 · Day 33 · Docs · Build · Acknowledgements · Traffic Today · Traffic Trends · Mirrors · GitHub · feedback@pldb.com