Essay

Explain the structure and matching logic of the regular expression r'[0-9]+\.([0-9]+|(?!\.))' used for Number.Float in the Magma lexer.

0

1

Updated 2026-10-08

Tags

Prep Sessions

Custom Pygments Lexer Engineering for Magma @ University of Michigan - Ann Arbor

Ch.1 Magma Lexer Fundamentals - Custom Pygments Lexer Engineering for Magma @ University of Michigan - Ann Arbor

Lexing Strings, Numbers, and Comments - Custom Pygments Lexer Engineering for Magma @ University of Michigan - Ann Arbor