PyCon JP 2025 Logo
広島国際会議場
JPEN
Chaw Chit Su Thwe

Chaw Chit Su Thwe

What does it take to create a language of your own in Python?

ダリア2EN
03:00 - 03:3030min
DAY 1
09/26
FRI

Ever wondered how to create your own domain-specific language tailored to your needs?

This session explores how to build a programming language that lets users write code using natural language. Designed to be fun, intuitive and easy to use, the language is crafted for young learners especially those for whom English is not a first language. Built with Python, the system parses and interprets natural language into executable code. The design challenges, key insights, and lessons learned of the creation of this language will be shared.


トーク詳細 / Description

This session is for anyone curious about building your own little domain-specific languages, exploring new ways to teach programming or just crafting code that speaks your own language.

Inspired by my working with an organization that taught coding to children and talks at PyCon APAC, I asked: What if programming could be made more accessible with a language tailored to children?

The talk will cover:

Language Design

  • Making decisions around syntax depending on the purpose.

Architecture Choices

  • Interpreter vs compiler: which architecture best fits for your need?
  • Parsing libraries: tools available such as PLY, Lark.

Technical Implementation

  • Building the lexer, parser, and interpreter and handling errors using Python.

Demo

  • The language in action.

Future Directions

  • Adding support for more languages, introducing to wider community.
Chaw Chit Su Thwe

Chaw Chit Su Thwe

プロフィール

Chaw is a software developer at HENNGE in Japan, focusing on the Identity edition of the HENNGE One product which provides access control solutions. Outside of work, she enjoys reading, hiking, and exploring cafes.