DevFest Montreal

GDG Montreal

Vincent Salamanca-Gagnon

Vincent Salamanca-Gagnon

Software Developer at Transit

About Vincent

A mobile developer passionate about UI engineering and crafting beautiful user experiences. I love building delightful software and exploring everything related to user interface design. Constantly learning and embracing new challenges, I'm dedicated to pushing the boundaries and experimenting with new technologies and ideas. I'm also an avid notetaker and a diehard fan of the Persona series.

Session

Parsing Inline Strings Across Platforms: Building a Small Cross-Platform Library

Room 3 (14:00 ~ 14:45)

Formatting complex string representations in mobile applications often results in code that is error-prone and difficult to maintain. Encapsulating this logic into a Domain Specific Language (DSL) can simplify your codebase, but building a DSL and its parser can be intimidating.

This talk demystifies the process by introducing the fundamental concepts of constructing a small parser, using a practical use case to illustrate each step. Attendees will learn about building a lexer, parser construction, Abstract Syntax Tree (AST) generation, and error handling. The parsing logic is implemented within a Kotlin Multiplatform Library to accommodate platform-specific rendering, ensure consistency, and avoid code duplication across platforms.