From bdb8dfa8d2d9ac1668a1a0036d194cb57b168e37 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Mon, 31 Jul 2023 15:03:40 +0800 Subject: feat: add commiter --- docs/site/index.html | 882 --------------------------------------------------- 1 file changed, 882 deletions(-) delete mode 100644 docs/site/index.html (limited to 'docs/site/index.html') diff --git a/docs/site/index.html b/docs/site/index.html deleted file mode 100644 index 3ec44e7f..00000000 --- a/docs/site/index.html +++ /dev/null @@ -1,882 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - Psi Docs (Draft) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - Skip to content - - -
-
- -
- - - - - - -
- - -
- -
- - - - - - - - - -
-
- - - -
-
-
- - - - - - -
-
-
- - - -
-
-
- - - -
-
-
- - - -
-
- - - - - - - - - - - - - - - - - - - - - -

Psi CLI 语言

-

Psi is a new programming language designed with simplicity, flexibility, and performance in mind. It provides a clean and intuitive syntax that is easy to read and write, making it an excellent choice for both beginners and experienced programmers.

-

Features

-
    -
  • -

    Lexer Module_: The lexer module is responsible for converting the source code into a sequence of tokens. It recognizes the basic elements of the language such as identifiers, keywords, operators, and literals. ['OPERATOR', 'IDENTIFIER', 'SEPARATOR', 'SEPARATOR', 'CONTROL', 'IDENTIFIER', 'OPERATOR', 'INTEGER', 'SEPARATOR', 'IDENTIFIER', 'SEPARATOR', 'IDENTIFIER', 'OPERATOR', 'IDENTIFIER', 'SEPARATOR', 'IDENTIFIER', 'SEPARATOR', 'EOF']

    -
  • -
  • -

    Parser Module_: The parser module takes the sequence of tokens generated by the lexer module and transforms it into an Abstract Syntax Tree (AST). The AST is a tree-like data structure that represents the source code in a way that is closer to the syntactic structure of the programming language.

    -
  • -
  • -

    Built-in Types Module_: This module defines the built-in types of the Psi language, such as lists and dictionaries. It provides functions for creating and manipulating instances of these types.

    -
  • -
  • -

    Error Handling Module_: This module provides a mechanism for catching and handling errors during runtime. It defines a set of exception classes and functions for throwing and catching these exceptions.

    -
  • -
  • -

    Execution Environment Module_: This module defines the execution environment of the Psi language, including the scope and lifecycle of variables. It provides functions for defining and looking up variables in the execution environment.

    -
  • -
  • -

    Interpreter Module_: The main task of this module is to traverse the AST and perform the corresponding operations in the execution environment.

    -
  • -
  • -

    Mathematics Foundation Module_: This module provides basic mathematical functions and constants, such as addition, subtraction, multiplication, and division.

    -
  • -
  • -

    Documentation Module_: This module uses reStructuredText and Sphinx to build the documentation, providing API interface descriptions and usage examples.

    -
  • -
-

Getting Started

-

To get started with Psi, you can clone the repository and follow the instructions in the README file. The repository includes a comprehensive set of examples that demonstrate the various features of the language.

-

Contributing

-

Contributions to the Psi project are welcome. If you have a feature request, bug report, or proposal for improvement, please open an issue on the project's GitHub page. If you wish to contribute code, please fork the repository and submit a pull request.

-

How to build docs

-
git clone https://github.com/HydroRoll-Team/psi.git
-cd psi/psi/docs
-sphinx-build -b html . _build/html
-
-

License

-

Psi is open-source software, licensed under the MIT license. This means you are free to use, modify, and distribute it under the terms of this license.

-

Last modified on: 2023-07-25 12:37:11

- -
-
- - - Last update: - 2023-07-25 - -
- Created: - 2023-07-25 - - -
-
- - - - - - - - - - - - -
- - Authors: 简律纯 - -
- - -
-
- - -
- - - -
- - - -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file -- cgit v1.2.3-70-g09d2