[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: use Elisp to improve your Elisp - some code issues
From: |
Emanuel Berg |
Subject: |
Re: use Elisp to improve your Elisp - some code issues |
Date: |
Thu, 06 Aug 2015 01:40:34 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
Robert Thorpe <rt@robertthorpeconsulting.com> writes:
> 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.
>
> 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.
If you read the code, you find the two most important
functions are `regexp-hits-find-hit' and
`search-regexp-in-files'. regexp means regexps!
That there are examples - which work - applied on Lisp
files don't change that.
Now, it doesn't say *one word* about re-parsing or
otherwise analyzing the code with respect imbecile,
ten million times accursed computer science theory.
If you want to do that - just do it! See if I will
come and have 42 degrees of expedition fever and
purposely misunderstand and be all negativistic.
Of course, I will not - and why do you think that is?
--
underground experts united
http://user.it.uu.se/~embe8573
- 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, 2015/08/02
- 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 <=
- Re: use Elisp to improve your Elisp - some code issues, John Mastro, 2015/08/05
- Message not available
- Re: 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