Questions Concepts
GitHub icon

Chapel

Chapel - Programming language

< >

Chapel is an open source programming language created in 2004 by David Callahan and Hans Zima and Brad Chamberlain and John Plevyak.

Source code:
git clone https://github.com/chapel-lang/chapel
#111on PLDB 19Years Old 212Repos

Try now: TIO

Chapel, the Cascade High Productivity Language, is a parallel programming language developed by Cray. It is being developed as part of the Cray Cascade project, a participant in DARPA's High Productivity Computing Systems (HPCS) program, which had the goal of increasing supercomputer productivity by the year 2010. It is being developed as an open source project, under version 2 of the Apache license.. Read more on Wikipedia...


Example from hello-world:
writeln("Hello World");
Example from Linguist:
writeln("Hello, world!"); // print 'Hello, world!' to the console
Chapel Keywords
_ align atomic begin break by class cobegin coforall config const continue delete dmapped do domain else enum export extern for forall if in index inline inout iter label let local module new nil on otherwise out param proc record reduce ref return scan select serial single sparse subdomain sync then type union use var when where while yield zip

Language features

Feature Supported Token Example
Binary Literals
// 0[bB][01]+
Integers
// [0-9]+
Floats
// (\d*\.\d+)([eE][+-]?[0-9]+)?i?
Hexadecimals
// 0[xX][0-9a-fA-F]+
Octals
// 0[oO][0-7]+
Conditionals
Constants
Classes
While Loops
Strings "
"Hello world"
MultiLine Comments /* */
/* A comment
*/
Print() Debugging writeln
Line Comments //
// A comment
Comments
Case Insensitive Identifiers X
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