Home
Packages
Forums
Wiki
GitLab
Security
AUR
Download
コンテンツにスキップ
メインメニュー
メインメニュー
サイドバーに移動
非表示
案内
メインページ
目次
コミュニティに貢献
最近の出来事
おまかせ表示
特別ページ
交流
ヘルプ
貢献
最近の更新
最近の議論
新しいページ
統計
リクエスト
ArchWiki
検索
検索
表示
アカウント作成
ログイン
個人用ツール
アカウント作成
ログイン
Swiftのソースを表示
ページ
議論
日本語
閲覧
ソースを閲覧
履歴を表示
ツール
ツール
サイドバーに移動
非表示
操作
閲覧
ソースを閲覧
履歴を表示
全般
リンク元
関連ページの更新状況
ページ情報
表示
サイドバーに移動
非表示
←
Swift
あなたには「このページの編集」を行う権限がありません。理由は以下の通りです:
この操作は、次のグループに属する利用者のみが実行できます:
登録利用者
。
このページのソースの閲覧やコピーができます。
[[Category:プログラミング言語]] Running swift-language builds and doing swift development is possible on linux. To install swift use {{AUR|swift-bin}} for the released version, repackaged Fedora binary, or {{AUR|swift-language}} for a native build from source. {{AUR|swift-language-git}} will give the latest from git. For code completion the sourcekit language server protocol, [https://github.com/apple/sourcekit-lsp sourcekit-lsp] is available, e.g. as plugin to visual studio code, {{Pkg|code}}. == Edit and code completion == [[Install]] {{Pkg|code}}, then install sourcekit-lsp from source, {{Pkg|nodejs}} is needed. {{hc| install vscode sourcekit-lsp from source| git clone git@github.com:apple/sourcekit-lsp.git cd Editors/vscode npm run createDevPackage code --install-extension out/sourcekit-lsp-vscode-dev.vsix }} == hello world == swift package manager allows to create example programs. {{hc|hello-world executable| swift package init --type executable swift run }} {{hc|hello-world library| swift package init swift build }} == read eval print loop, REPL == For details on the swift REPL, see [https://swift.org/getting-started/#using-the-repl here]. {{hc|read eval print loop|2= > swift Welcome to Swift version 5.3 (swift-5.3-RELEASE). Type :help for assistance. 1> 1+1 $R0: Int = 2 2> }}
このページで使用されているテンプレート:
テンプレート:AUR
(
ソースを閲覧
)
テンプレート:Hc
(
ソースを閲覧
)
テンプレート:Pkg
(
ソースを閲覧
)
Swift
に戻る。
検索
検索
Swiftのソースを表示
話題を追加