Skip to main content

Chapel domain for Sphinx

Project description

Chapel domain for Sphinx.

https://travis-ci.org/chapel-lang/sphinxcontrib-chapeldomain.svg?branch=master https://coveralls.io/repos/chapel-lang/sphinxcontrib-chapeldomain/badge.svg?branch=master

Package documentation is available on readthedocs.org.

Installation

To install:

pip install sphinxcontrib-chapeldomain

To install from source on github:

git clone https://github.com/chapel-lang/sphinxcontrib-chapeldomain
cd sphinxcontrib-chapeldomain
python setup.py install

Getting Started

This is an example that covers several features of the Chapel domain:

.. chpl:module:: GMP
    :synopsis: multiple precision integer library

.. chpl:record:: BigNum

    multiple precision instances

    .. chpl:method:: proc add(a:BigNum, b:BigNum)

        Add two big ints, ``a`` and ``b``, and store the result in ``this``
        instance.

        :arg a: BigNum to be added
        :type a: BigNum

        :arg BigNum b: BigNum to be added

        :returns: nothing, result is stored in current instance

    .. chpl:itermethod:: iter these() ref

        Arbitrary iterator that returns individual digits of this instance.

        :ytype: reference
        :yields: reference to each individual digit of BigNum

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sphinxcontrib-chapeldomain-0.0.11.tar.gz (22.9 kB view details)

Uploaded Source

File details

Details for the file sphinxcontrib-chapeldomain-0.0.11.tar.gz.

File metadata

File hashes

Hashes for sphinxcontrib-chapeldomain-0.0.11.tar.gz
Algorithm Hash digest
SHA256 6c68f8aa18c6ccc6906b25cf8ff7167d5d4f8eef5d16380d064d6dfb81a6b6ed
MD5 f8e03445c7e551e542a0438528b7695f
BLAKE2b-256 74e24d5e2aac4f3dcbad024a6576cf5e097611cbd89525209aec2bd03b3917ba

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page