Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

Cobra

< >

Cobra is an open source programming language created in 2006 by Charles Esterbrook.

#610on PLDB 18Years Old
Homepage · REPL · Try It Online · Wikipedia

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'
"""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 ✓

- Build the next great programming language · Add · Issues · About · Search · Keywords · Livestreams · Labs · Resources · Acknowledgements

Built with Scroll v154.3.0