Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

jmcnamara (659)

jmcnamara
  (email not shown publicly)
http://search.cpan.org/author/jmcnamara/


'ere I am, J.M.! The ghost in the machine:

perl -MCPAN -e 'install jmcnamara & _ x ord $ ;' | tail -1

Journal of jmcnamara (659)

Wednesday February 23, 2005
06:27 AM

make what I mean

[ #23326 ]
I was aware that make has implicit rules and that if you have a simple C program without a makefile, you can still do the following:

$ make hello
cc     hello.c   -o hello

And you end up with an executable.

However, I was surprised when I tried the following for a yacc grammar (again there is no makefile):

$ make foo
yacc  foo.y
mv -f y.tab.c foo.c
cc     foo.c   -o foo

Handy.

Also, in relation to Yacc, here is a footnote from the O'Reilly Lex & Yacc book:

Yacc's use of dot to show where you are in the rule can get confusing if you have rules with dots in them. Some versions of yacc use an underscore rather than a dot, which can be equally confusing if you have rules with underscores in them.

I have a feeling that you could keep going on like this.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.