From: Tom Tromey <tromey@adacore.com>
To: Simon Marchi <simark@simark.ca>
Cc: Tom Tromey <tromey@adacore.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH] Rewrite the Ada lexer
Date: Tue, 17 Nov 2026 11:40:52 -0700 [thread overview]
Message-ID: <87pkw31etn.fsf@tromey.com> (raw)
In-Reply-To: <bbfa94b7-3150-4a10-945f-7b58ea57a3d2@simark.ca> (Simon Marchi's message of "Tue, 3 Nov 2026 15:28:58 -0500")
>>>>> "Simon" == Simon Marchi <simark@simark.ca> writes:
>> + /* Check whether the current token, held at pstate->lexptr with
>> + length LEN, is a keyword. Returns the token value if so; returns
>> + nullopt if not. */
>> + std::optional<int> check_keyword (size_t len);
Simon> I think it would be a bit clearer if you passed the string to this
Simon> function instead of having it read pstate->lexptr.
In this case I think it's better as-is, because check_keyword may have
to examine text after the actual keyword to handle the special case of
"thread".
Tom
prev parent reply other threads:[~2026-11-17 18:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-03 14:23 Tom Tromey
2026-11-03 20:28 ` Simon Marchi
2026-11-17 18:40 ` Tom Tromey [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pkw31etn.fsf@tromey.com \
--to=tromey@adacore.com \
--cc=gdb-patches@sourceware.org \
--cc=simark@simark.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox