[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: use Elisp to improve your Elisp - some code issues
From: |
Robert Thorpe |
Subject: |
Re: use Elisp to improve your Elisp - some code issues |
Date: |
Sun, 02 Aug 2015 16:36:21 +0100 |
Emanuel Berg <embe8573@student.uu.se> writes:
> "Pascal J. Bourguignon" <pjb@informatimago.com>
> writes:
>
>> No.
>>
>> I said that if you went beyond those simple case,
>> your regexp solution would break lamentably.
>
> This is an interface to regexps so it sure doesn't go
> anywhere beyond what can be expressed by regexps.
I agree with Pascal & Marcin.
Why not use the "read" function to read in the code of the file. Then
you have everything as a tree. You can use car and cdr to walk the tree
and find the relevant function calls. Then you're in the right place in
the Chomsky heirachy.
> (if a a b)
Suppose "a" and "b" are expressions rather than variables. Suppose
that the two instances of "a" have different whitespace and comments
between them. In that case they can't be differentiated by regex.
Regex can't count parenthesis either.
Another possibility is editing the byte-compiler source to provide more
warnings.
BR,
Robert Thorpe
- Re: use Elisp to improve your Elisp - some code issues, (continued)
Re: use Elisp to improve your Elisp - some code issues, Pascal J. Bourguignon, 2015/08/01
- Re: use Elisp to improve your Elisp - some code issues, Emanuel Berg, 2015/08/01
- Message not available
- Message not available
- Re: use Elisp to improve your Elisp - some code issues, Pascal J. Bourguignon, 2015/08/01
- Re: use Elisp to improve your Elisp - some code issues, Emanuel Berg, 2015/08/01
- Re: use Elisp to improve your Elisp - some code issues,
Robert Thorpe <=
- Re: use Elisp to improve your Elisp - some code issues, Pascal J. Bourguignon, 2015/08/02
- Re: use Elisp to improve your Elisp - some code issues, Emanuel Berg, 2015/08/05
- Re: use Elisp to improve your Elisp - some code issues, John Mastro, 2015/08/05
Message not availableRe: use Elisp to improve your Elisp - some code issues, Rusi, 2015/08/02
Re: use Elisp to improve your Elisp - some code issues, Michael Heerdegen, 2015/08/01
Re: use Elisp to improve your Elisp - some code issues, Sam Halliday, 2015/08/02
Re: use Elisp to improve your Elisp - some code issues, Tassilo Horn, 2015/08/03