bug-gawk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: succinct awk code to check for paired parantheses?


From: Peng Yu
Subject: Re: succinct awk code to check for paired parantheses?
Date: Wed, 24 Mar 2021 08:49:44 -0500

No. I need this code to be mixed with other awk code. So using lex is
not an option that I will consider at this moment.

On 3/24/21, david kerns <david.t.kerns@gmail.com> wrote:
> I'd recommend lex over awk for this task...
>
> On Wed, Mar 24, 2021 at 6:32 AM Peng Yu <pengyu.ut@gmail.com> wrote:
>
>> Hi,
>>
>> I want to check whether parentheses (only "()") in a string are all
>> paired. Here is some awk code. But it looks quite clumsy. Is there a
>> better implementation more readable and succinct? Thanks.
>>
>> https://stackoverflow.com/questions/2667494/awk-brackets-checking
>>
>> --
>> Regards,
>> Peng
>>
>>
>


-- 
Regards,
Peng



reply via email to

[Prev in Thread] Current Thread [Next in Thread]