Home›VS Code / Dev Env›日本語プログラミング言語ドリトル をVSCodeターミナルでビルドできる環境を構築(CLIラッパークラスの実装)
日本語プログラミング言語ドリトル をVSCodeターミナルでビルドできる環境を構築(CLIラッパークラスの実装)

日本語プログラミング言語ドリトル をVSCodeターミナルでビルドできる環境を構築(CLIラッパークラスの実装)Building a Setup to Compile the Japanese Programming Language Dolittle from the VSCode Terminal (Implementing a CLI Wrapper Class)

元記事を読むRead original articleqiita.com(新しいタブで開きます)(opens in a new tab)
AI 要約AI summary

Windows版ドリトルにはコマンドライン用コンパイラがないため、dolittle.jarの機能を呼び出すCLIラッパークラスを作り、VSCodeのターミナルからビルドと実行ができる環境を整えた。GitHub Copilotと進めた試行過程も紹介し、エディタ外で開発したい利用者の助けになる。

Because Windows Dolittle ships no command-line compiler, this write-up builds a CLI wrapper class around dolittle.jar so code can be built and run from the VSCode terminal, developed with GitHub Copilot's help.

AI 生成の要約と解説(解説は要約と収集メタデータに基づく)で、元記事全文の転載・翻訳ではありません。日本語版と英語版は言語ごとに独立して生成しています。正確性は元記事 (qiita.com) でご確認ください。AI-generated summary and explainer (the latter based on the summaries and collected metadata), not a copy or translation of the full source article. Generated independently for each language. Verify accuracy at the original source (qiita.com).

ターミナルでビルド

Windows版ドリトルにはコマンドラインコンパイラが提供されていないようです。この記事は、dolittle.jarの機能を呼び出すCLIラッパークラスを作り、VSCodeのターミナルからビルドと実行ができる環境を整えた取り組みを紹介しています。エディタの外で開発したい利用者に役立つ内容とされています。

目的はVSCodeでドリトルのソースコードを編集し、ビルドして実行を始められるようにすることです。VSCode拡張によるシンタックスハイライトなどの機能支援ではなく、ドリトルエディタのコンパイル機能をコマンドラインで使うための方策に絞った試みだと説明されています。

中間コードの言語

ドリトルは、日本語に近い語順で記述できるプロトタイプベースのオブジェクト指向言語で、中間コードコンパイラ型の言語です。中間コードはJVMバイトコードのため、Javaアプリケーションと同じ実行環境で動きます。

教育目的で開発された日本語プログラミング言語で、中学校・高校の教科書や副教材などに採用されています。

コマンドライン不在

Windows版ドリトルは、JavaのGUIアプリとして実装されたドリトルエディタを起動し、その中でコードを編集して実行するのが基本です。コマンドラインコンパイラがないのは、教育向けという性格のためかもしれないと筆者は見ています。

Copilotとの試行

当初は汎用AIのMicrosoft Copilotと対話しながら実現を試みていました。その後、AIエージェントのGitHub Copilotを使い始め、対応を引き継いでもらったそうです。

過程はdocsフォルダ内の文書に残されています。その一つがdolittle.jarをコマンドラインからコンパイル実行するプランです。この文書には、試行記録にあった未確認のリフレクション案を確定事項として扱わないことが書かれています。まずJAR内の実際の処理経路を調べ、そのうえでCLI化する手順を踏みます。あわせてWindows用の起動スクリプト、エラー処理、完了条件も記載されています。

Dolittle without a command-line compiler

Dolittle is a Japanese programming language, and the Windows version reportedly ships without a command-line compiler. This write-up describes an attempt to work around that so Dolittle source code can be edited, built, and run from the VSCode terminal instead of only inside the bundled editor.

Prototype-based, JVM-hosted

According to the article, Dolittle is a prototype-based object-oriented language that can be written in word order close to Japanese. It is an intermediate-code compiler language, and the intermediate code is JVM bytecode, so it runs in the same environment as Java applications. It was developed for education and is used in junior high and high school textbooks and supplementary materials. The author suggests this may be why the Windows version offers no command-line compiler. Normally, Windows Dolittle is launched as the Dolittle editor, a Java GUI application, and code is edited and run inside it.

Scope of the attempt

The article states that its aim is to let users edit, build, and start running Dolittle source in VSCode. It is explicitly not about VSCode extensions, syntax highlighting, or other convenience features. Instead, it focuses on a way to use the Dolittle editor's compile function from the command line. The approach is a CLI wrapper class that calls functionality in dolittle.jar, so building and running can happen from the VSCode terminal.

Working with Copilot and the plan

The author first tried to achieve this by talking with Microsoft Copilot, a general-purpose AI, and then moved to GitHub Copilot, an AI agent, which continued the work. Documents from that process are named in the article, including docs\dolittle_cli_evalution.md and a plan file for compiling and running dolittle.jar from the command line.

According to the article, the plan summarizes the approach. It does not treat an unverified reflection idea from the trial notes as settled. Instead, it examines the actual processing path inside the JAR before turning it into a CLI. The plan also covers a Windows launch script, error handling, and completion criteria.

The article is aimed at users who want to develop Dolittle outside the editor.

ポコとTECHガイドPoko & TECH Guide

ポコと当サイトのTECHガイドが、記事の要約と収集した情報から読みどころを語るAI生成の対話です。Poko and TECH Dashboard's own TECH Guide discuss the article's highlights in an AI-generated conversation based on its summary and collected source details.

  1. ポコPokoWindows版ドリトルにコマンドラインのコンパイラがないって、これって大きいことなの?Windows Dolittle has no command-line compiler? Is that a big deal?
  2. TECHガイドTECH Guideこの記事だと、基本はGUIのドリトルエディタの中で編集して実行する形だそうです。だからターミナルから動かす道を作る意味が出てきます。The article says you normally edit and run code inside the Dolittle editor, a GUI app. So a way to run it from the terminal really matters.
  3. ポコPokoCLIラッパークラスって何? 何かを包むってこと?What's a CLI wrapper class? Does it wrap something?
  4. TECHガイドTECH Guide一般的には、既存の機能を包んで呼び出しやすくするものです。ここではdolittle.jarの機能をコマンドラインから呼ぶ役目ですね。Generally, it wraps existing functionality so it's easier to call. Here, it lets the command line call what dolittle.jar already does.
  5. ポコPokoVSCodeで書いて、そのままターミナルでビルドできたら便利そう! 色分けもつくのかな?Writing in VSCode and building right in the terminal sounds handy! Would I get syntax colors too?
  6. TECHガイドTECH Guide色分けなどの拡張の話ではなく、コンパイル機能をコマンドラインで使う方策が中心です。未確認の案は確定扱いせず、JARの処理経路を調べてから進めています。Not really. It's not about highlighting or extensions, but using the compile feature from the command line. Unverified ideas aren't treated as settled; they check the JAR's actual path first.
記事情報・収集記録Article details & collection record
出典Source
Qiita VSCodeコミュニティCommunity
公開日時 (JST)Published (JST)
収集日時 (JST)Collected (JST)
配信形式Format
ブログBlog
原文言語Source language
日本語Japanese
重要度の位置づけImportance in this lane
InfoInformational(VS Code / Dev Env 56件中、同等以上 56件)(56 of 56 VS Code / Dev Env entries are equal or higher)
出典の平均重要度(掲載直近 30 件・最大 30 件)Source average (last 30 listed, up to 30)
1.9 / 31=情報 · 2=中 · 3=高1=Info · 2=Medium · 3=High
情報の寿命Half-life
中期 (チュートリアル)Medium-term (tutorial)

🔷VS Code / Dev Env の他の記事More from VS Code / Dev Envもっと見る →View more →

ページ上部へScroll to top