Skip to main content

Chapel domain for Sphinx

Project description

Chapel domain for Sphinx.

https://github.com/chapel-lang/sphinxcontrib-chapeldomain/actions/workflows/CI.yml/badge.svg https://codecov.io/gh/chapel-lang/sphinxcontrib-chapeldomain/branch/main/graph/badge.svg

Package documentation is available on readthedocs.org.

Installation

To install:

python3 -m 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.35.tar.gz (27.0 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file sphinxcontrib_chapeldomain-0.0.35.tar.gz.

File metadata

File hashes

Hashes for sphinxcontrib_chapeldomain-0.0.35.tar.gz
Algorithm Hash digest
SHA256 6e1e0750b250c59f3099790e3fceb895edeaa1be5d42ed7810f698bc35d37cd5
MD5 136da6126fd99c888eeacccc0b0005bf
BLAKE2b-256 e9de55ed3f4b5dcf794c8b3b9224734d01fcbeb1fd2ac34ffa5a224706f2c8fb

See more details on using hashes here.

File details

Details for the file sphinxcontrib_chapeldomain-0.0.35-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinxcontrib_chapeldomain-0.0.35-py3-none-any.whl
Algorithm Hash digest
SHA256 fb594e7dadfe3d4b45714341eb026de8b35808e19907909f2c1b03bdab2e14f4
MD5 49d19d27d5a386b64ae92a06e17ad210
BLAKE2b-256 04671680ccf251cbbdf6974db80085ce685a09ef8ca70ba2a992c45d0c24109b

See more details on using hashes here.

Supported by

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