Towards Slangs and DSLs - Matthew Stuckwisch

Published: 13 July 2023
on channel: The Perl and Raku Conference - Greenville, SC 2025
546
14

#perl #tprc #slangs #DSLs #gpls

Have you wanted to create your own DSL? Or do you have your own favorite DSL? A DSL in Raku can be something as simple as letting you expression a literal in a more compact manner or as complex as an entire language. Learn how to not only create one, but integrate it into Raku!

Raku allows users to integrate slangs, or sublanguages that modify the syntax. This can be used in a number of ways, but one is to integrate simple DSLs, or add new syntax features. This talk discusses the ways to currently integrate DSLs by way of modifying Raku’s core grammar and actions. This is something that will be much easier down the road as RakuAST becomes a bit more polished, but is easy enough for most use cases with the current Raku compiler. Appropriate caveats will be noted when things aren’t as future proofed (but also discuss what the future-proofed version will be).


Watch video Towards Slangs and DSLs - Matthew Stuckwisch online without registration, duration hours minute second in high quality. This video was added by user The Perl and Raku Conference - Greenville, SC 2025 13 July 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 54 once and liked it 1 people.