Skip to content

arx

Arx is a compiler create with llvm.

Modules:

  • cli

    Functions and classes for handling the CLI call.

  • exceptions

    Define custom Exceptions to improve error message.

  • io

    Module for handling the IO used by the compiler.

  • lexer

    Module for handling the lexer analysis.

  • logs

    The logs functions and classes handle all the system messages.

  • main

    Arx main module.

  • parser

    parser module gather all functions and classes for parsing.

  • semantic

    Semantic analysis module.

Functions:

get_version

get_version() -> str

Return the program version.

Source code in src/arx/__init__.py
 6
 7
 8
 9
10
11
def get_version() -> str:
    """Return the program version."""
    try:
        return importlib_metadata.version(__name__)
    except importlib_metadata.PackageNotFoundError:  # pragma: no cover
        return "0.2.0"  # semantic-release