Build Your Own Programming Language Part III: Improving Lexical Analysis with Regex Lookaheadsby@alexandermakeev
2,502 reads

Build Your Own Programming Language Part III: Improving Lexical Analysis with Regex Lookaheads

tldt arrow
Read on Terminal Reader🖨️

Too Long; Didn't Read

In this part of creating your own programming language we will improve our lexical analysis with lookaheads and lookbehinds. Lookaheads allow you to create your own `^` and `$` sub-expressions. With their help, you can set up a condition that will be met at the beginning and at the end of the line or won’t, and this condition will not be a part of the “matched” expression. Lookahead “looks” forward and accordingly should be placed at end.

Company Mentioned

Mention Thumbnail
featured image - Build Your Own Programming Language Part III: Improving Lexical Analysis with Regex Lookaheads
Alexander Makeev HackerNoon profile picture

@alexandermakeev

Alexander Makeev

Learn More
LEARN MORE ABOUT @ALEXANDERMAKEEV'S EXPERTISE AND PLACE ON THE INTERNET.
react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa