ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] Q: Проверка спека на присутствие макроса.
@ 2008-08-11 21:48 Aleksey Avdeev
  2008-08-11 21:56 ` Alexey Tourbin
  2008-08-11 22:01 ` Alexey I. Froloff
  0 siblings, 2 replies; 21+ messages in thread
From: Aleksey Avdeev @ 2008-08-11 21:48 UTC (permalink / raw)
  To: ALT Linux Team development discussions

[-- Attachment #1: Type: text/plain, Size: 378 bytes --]

Здравствуйте.

   Решая задачу проверки использования (не объявления) макроса в спеке 
нарисовал такое регулярное выражение (для egrep):

'%(<макрос>($|[^[:alnum:]_])|([{](<макрос>[}]|(|!)\?<макрос>[:}])))'

   Вопросы:

1. Все ли случаи я учёл?

2. Можно ли его упростить? (Троекратное повторение <макрос> мне не 
нравиться...)

-- 

С уважением. Алексей.



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 552 bytes --]

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2008-08-19  8:51 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-11 21:48 [devel] Q: Проверка спека на присутствие макроса Aleksey Avdeev
2008-08-11 21:56 ` Alexey Tourbin
2008-08-11 21:58   ` Aleksey Avdeev
2008-08-11 22:07     ` Alexey Tourbin
2008-08-11 22:00   ` Aleksey Avdeev
2008-08-11 22:15     ` Alexey Tourbin
2008-08-11 22:27       ` Aleksey Avdeev
2008-08-11 22:37         ` Alexey Tourbin
2008-08-11 22:52           ` Aleksey Avdeev
2008-08-11 22:01 ` Alexey I. Froloff
2008-08-11 22:21   ` Aleksey Avdeev
2008-08-12  7:46     ` Igor Vlasenko
2008-08-12  8:50       ` Aleksey Avdeev
2008-08-18  7:51         ` Michael Shigorin
2008-08-18 13:15           ` Aleksey Avdeev
2008-08-19  4:16             ` Ildar Mulyukov
2008-08-19  8:12               ` Michael Shigorin
2008-08-19  8:50                 ` Alexey I. Froloff
2008-08-19  8:42             ` Aleksey Avdeev
2008-08-19  8:46               ` Mikhail Gusarov
2008-08-19  8:51                 ` Aleksey Avdeev

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git