Rust 033 マクロのパターン - フラグメント指定子と分岐 episode artwork

EPISODE · May 18, 2026 · 15 MIN

Rust 033 マクロのパターン - フラグメント指定子と分岐

from 聞き流しプログラミング言語学習 · host ますたーさん

第33章へようこそ。今日のテーマは「マクロのパターン」です。前章で、マクロ定義はパターンと展開の組であるルールの集まりだと見ました。呼び出し位置にあるトークン列がパターンに照らされ、一致したルールの展開部分が差し込まれる。ではパターンの中身はどう書くのか。ここで中心になるのが、フラグメント指定子と呼ばれる仕組みです。パターンの中の特定の位置に「ここは式が来る」「ここは識別子が来る」「ここは型が来る」と宣言することで、トークン列に意味の粒度を与える。今日扱うのは、フラグメント指定子の体系、特に万能だが粗い「任意のトークンツリー」の役割、指定子の後ろに何が来てよいかの制約、複数のルールがどう選ばれるかの順序、そして指定子の粒度の設計判断です。

Episode metadata supplied by the publisher feed · Published May 18, 2026

Embed this episode

NOW PLAYING

Rust 033 マクロのパターン - フラグメント指定子と分岐

0:00 15:02

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

No similar episodes found.

No similar podcasts found.

Frequently Asked Questions

How long is this episode of 聞き流しプログラミング言語学習?

This episode is 15 minutes long.

When was this 聞き流しプログラミング言語学習 episode published?

This episode was published on May 18, 2026.

Can I download this 聞き流しプログラミング言語学習 episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.
URL copied to clipboard!