Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 1.94 KB

dialects.md

File metadata and controls

41 lines (30 loc) · 1.94 KB

Navigation

Table of Contents

Examples of creating dialects using mcpyrate

The dialects subsystem of mcpyrate makes Python into a language platform, à la Racket. It provides the plumbing that allows to create, in Python, dialects that compile into Python at macro expansion time. It is geared toward creating languages that extend Python and look almost like Python, but extend or modify its syntax and/or semantics. Hence dialects.

As examples of what can be done with a dialects system together with a kitchen-sink language extension macro package such as unpythonic, we currently provide the following dialects:

All three dialects support unpythonic's continuations block macro, to add call/cc to the language; but it is not enabled automatically.

Mostly, these dialects are intended as a cross between teaching material and a (fully functional!) practical joke, but Lispython may occasionally come in handy.