help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Any package for boolean search?


From: Joel Reicher
Subject: Re: Any package for boolean search?
Date: Sun, 29 Dec 2024 03:06:46 +1100
User-agent: Gnus/5.13 (Gnus v5.13)

Jean Louis <bugs@gnu.support> writes:

* Joel Reicher <joel.reicher@gmail.com> [2024-12-28 06:46]:
But if you're not designing the syntax and you want to find something that will do an existing syntax, possibly the simplest is Lisp itself since Lisp has all these operators and is homoiconic. If the query syntax is Lisp, the string can be passed to read and eval and you're done, I think.

I would not like eval-ing on remote server for some reasons 🤔.

Solving a search query is an eval, but I think you are saying you want to avoid code injection which is fair enough.

Off the top of my head you can map over the sexpr returned by read and rewrite the symbols to ones you control before evaling.

In my opinion it is still worth avoiding a parse, which is what Lisp can give you.

Regards,

       - Joel



reply via email to

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