Skip to content

Introduction

MíngShé is a Python superset language. It uses the Pegen syntax parser to compile the code to Python AST for execution.

In addition to the syntax supported by Python itself (currently synchronized to 3.10), MíngShé supports the following syntax:

  • Pipeline: arg |> func
  • Conditional: condition? True_branch: false_branch
  • Partial: square = pow(?, 2)
  • Nullish coalescing: obj ?? other
  • Optional chaining: obj?.attr, obj?[key], obj?.func()
  • Unpack mapping:{ key } = one_dict

Editor plugins

Visual Studio Code: