API リファレンス

lp9 api が書いた一覧です。組み込みのクラスは、コンパイラが送信の型を決めるのに読み、ランタイムが送信を実行するのに読む一つの表から作られています。なので、ここにあるものが言語の答えるものです。LP-9 で書かれた標準ライブラリは、LP-9 自身の構文解析で読んでいます。

型は表の書き方のままです。self は受け手自身の型、elem は Array・Maybe・Future の要素の型、key と val は Dict のキーと値、a と b は何でもよい型です。ライブラリのメソッドに型が書いていないのは、使われた所で推論が付ける型がそのメソッドの型だからです。

Object はすべての受け手、Class は任意のクラス、Instance はプログラムが宣言したクラスのインスタンスです。この三つはプログラムに書けません。

以下は生成されたままの英語です。

Table of contents

Built-in classes

Standard library


Forms

These are sends the table cannot hold, because what they answer is not decided by the receiver's type and the selector alone. Each is checked where it is written.


Built-in classes

Actor

Instance methods

Array

Instance methods

Base64

Class methods

Block

Instance methods

Bool

Instance methods

Class

Instance methods

Clipboard

Class methods

DB

Class methods

Instance methods

Date

Class methods

Instance methods

DateTime

Class methods

Instance methods

DbRow

Instance methods

Decimal

Instance methods

Dict

Class methods

Instance methods

Error

Class methods

File

Class methods

FileDialog

Class methods

FileHandle

Instance methods

Float

Class methods

Instance methods

Future

Class methods

Instance methods

Gfx

Instance methods

Hash

Class methods

Hotkey

Class methods

Http

Class methods

HttpResponse

Instance methods

Image

Class methods

Instance methods

Instance

Instance methods

Instant

Class methods

Instance methods

Int

Instance methods

Json

Class methods

Instance methods

Mariadb

Class methods

MariadbConnection

Instance methods

Maybe

Instance methods

MsgPack

Class methods

OS

Class methods

Object

Instance methods

Paint

Class methods

Instance methods

Postgres

Class methods

PostgresConnection

Instance methods

Regex

Class methods

Instance methods

RegexMatch

Instance methods

Rounding

Class methods

Sql

Instance methods

SqlTemplate

Class methods

Instance methods

Str

Class methods

Instance methods

TCP

Class methods

TCPServer

Instance methods

TCPSocket

Instance methods

TLS

Class methods

TLSSocket

Instance methods

TimeZone

Class methods

Instance methods

Tray

Class methods

Window

Class methods

Zlib

Class methods


Standard library

Written in LP-9, in stdlib/. A program reaches it with imports: (Ui). at the top of the file.

Col

Class methods

Instance methods

Comparable

Instance methods

Edit

Class methods

Instance methods

Enumerable

Instance methods

Memo

Class methods

Instance methods

OrderedDict

Class methods

Instance methods

Span

Instance methods

Theme

Class methods

Tree

Class methods

Instance methods

TreeWalk

Class methods

Instance methods

W

Class methods

Wrapping

Class methods

Instance methods