[nem-en] Re: indentation syntax ideas
Philippe Quesnel
philippe.quesnel at gmail.com
Sun Oct 30 15:39:55 CET 2005
>
>
> > Now the syntax is activated by the -i switch. Maybe it would be good
> > to provide something like #pragma indent or #indent to activate it
> > on file-by-file basis (that is no mixture of syntaxes within a file,
> > just when the traditional lexer sees #indent, it aborts and creates a
> > new indentaion lexer for this file).
>
> Not yet done, need some comment -- is it good idea to change the lexer
> depending on file contents?
>
I like the ability to enable (disable also ?) on a file by file basis,
since there's no .o / .obj files you have to compile a bunch of files
together,
you're kinda stuck with a setting for all those files,
"just compile the whole bunch with -i" ??
compiling non-"indent syntax" files w. -i normally works ..
but what about compilation errors for 'new files' !?
in such a case, I don't think using -i when the file is not written for
indent syntax is
a very good idea, the compiler would 'change' / 'interpret' your code in a
way that might
hide / create errors.
or stuff that would compile w/o -i might not compile anymore
suggestion/idea:
maybe the -i switch could be applied only to files that follow it on the cmd
line ?
so we could do:
ncc a.n b.n c.n -i ia.n ib.n ic.n
: compile a,b,c without -i
ia,ib,ic with -i ??
my .02
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /mailman/pipermail/devel-en/attachments/20051030/ab012cab/attachment.html
More information about the devel-en
mailing list