Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Stefan Reuther Newsgroups: comp.arch.embedded Subject: Re: Static regex for embedded systems Date: Tue, 21 Jan 2025 17:03:33 +0100 Lines: 16 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: individual.net Q9p1ya6xPXtTzGBClyE1rwkTPiEpCqBF7JIwpGClYsF1YJvc4g Cancel-Lock: sha1:L/SK+MS64EMrQeY+/361R2taq/0= sha256:0ub9PTH9/KKEJUzrmZ3UjPbtaSOr5wPdjGrjps4vkJo= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1 Hamster/2.1.0.1538 In-Reply-To: Xref: csiph.com comp.arch.embedded:32318 Am 21.01.2025 um 15:31 schrieb pozz: > Many times I need to parse/decode a text string that comes from an > external system, over a serial bus, MQTT, and so on. > > Many times this string has a fixed syntax/layout. In order to parse this > string, I everytime create a custom parser that can be tedious, > cumbersom and error prone. [...] I don't see a question in this posting, but isn't this the task that 'lex' is intended to be used for? (Personally, I have no problem with handcrafted parsers.) Stefan