Click here to Skip to main content
15,037,168 members
Articles / Internet of Things / Arduino

Stats

4.8K views
176 downloads
6 bookmarked

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
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

Downloads

License

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

Share

About the Author

honey the codewitch
United States United States
Just a shiny lil monster. Casts spells in C++. Mostly harmless.

Comments and Discussions