Click here to Skip to main content
15,878,852 members
Articles / Internet of Things / Arduino

Fun With State Machines: Incrementally Parsing Numbers Using Hacked Regex

Rate me:
Please Sign up or sign in to vote.
5.00/5 (10 votes)
2 Jan 2021MIT19 min read 8.7K   270   6  
Hoodwink your computer into doing your work for you using regular expressions
We're going to deconstruct a regular expression into a C# state machine, and then trick the computer with more regular expressions to turn it into C based coroutine which we will then augment with streaming number parsing. This article presents a weird use of some old code to perform some new tricks.

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The MIT License


Written By
United States United States
Just a shiny lil monster. Casts spells in C++. Mostly harmless.

Comments and Discussions