Overview
Explore the world of Domain Specific Languages (DSLs) in Python through this comprehensive EuroPython 2015 conference talk. Dive into the reasons for creating DSLs and learn various implementation techniques, including metaprogramming tricks and simple parser development. Discover how to leverage libraries like PLY and PyParsing to enhance your DSL creation process. Gain insights into building tooling around your custom languages and understand how DSLs can simplify complex systems, improve code readability, and make your Python projects more accessible to non-programmers. From metaclasses and context managers to operator overloading and parser generators, acquire the skills to extend Python's expressiveness and create tailored languages for your specific domain needs.
Syllabus
Introduction
Domain Specific Languages
What is a DSL
Metaclasses
Context managers
Operator Overloading
Parsers
DSLs
Do it Line
Linewise parses
Parser generators
PLY
Summary
Taught by
EuroPython Conference