05-31-2006
cc option
my yacc output file y.tab.c is not compiling using cc y.tab.c -ly command
.possibily option flag -ly is not correct.i m using red hat linux 9.please give solutions.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi
what does the following mean in shell scripts (-h option)
val contains a string.
while (-h "$val") (1 Reply)
Discussion started by: Raom
1 Replies
2. UNIX for Advanced & Expert Users
We have started to us the su option on our production server. We log in with our own id and then su into a special id to perform various tasks. This allows our actions to be monitored.
I need to know how to use the su option when doing an ftp between two servers. I noticed that when I log into... (1 Reply)
Discussion started by: lesstjm
1 Replies
3. UNIX for Dummies Questions & Answers
Hi,
Is there a no to all option when copying a bunch of files? instead of pressing enter endlessly.
Thanks (6 Replies)
Discussion started by: td_kuoj3
6 Replies
4. Shell Programming and Scripting
Hi,
I need one help for choosing best option among sed, perl and awk.
I need to search and replace thousand files for a text and need to replace it. I am in confusion for choosing the option for best results.
Because by using sed option its taking too much time for searching and replacing... (3 Replies)
Discussion started by: dbsurf
3 Replies
5. Shell Programming and Scripting
Hi all,
I am parsing command line options using getopts.
The problem is that mandatory argument options following ":" is taking next option as argument if it is not followed by any argument.
Below is the script:
while getopts :hd:t:s:l:p:f: opt
do
case "$opt" in
-h|-\?)... (2 Replies)
Discussion started by: gurukottur
2 Replies
6. Programming
hi everybody, can somebody tell me what -R option on g++ on solaris means :
g++ -DAIX -fpic -static -o printps printps.o -L/epost2/blitz/xercesc1_1 /lib -L/oracle/OraHome/lib32/ L/epost2/blitz/lib -lxerces-c1_1 -lhmltods -lhmlt ops -lgeneric -lnotify -lutil -lclntsh `cat... (0 Replies)
Discussion started by: eternalflame
0 Replies
7. Shell Programming and Scripting
Hello,
I am still in the process of learning Shell Programming. The online manual, that I am referring to had following question:
I made a script as follows:
df --block-size=1GB | tr -s ' '| cut -d' ' -f2,5 | grep -v 1GB* | sort -k1,2n | tail -1 | cut -d' ' -f2 | cut -d '%' -f1 and it... (2 Replies)
Discussion started by: shahdharmit
2 Replies
8. Shell Programming and Scripting
To find all the files in your home directory that have been edited in some way since the last tar file, use this command:
find . -newer backup.tar.gz
Is anyone familiar with an older solution?
looking to identify files older then 15mins across several directories.
thanks,
manny (2 Replies)
Discussion started by: mr_manny
2 Replies
9. Shell Programming and Scripting
Hi,
I'm new to shell scripting and I'm trying to read some code I need to use. Could you help me out on what it's doing? I read this as.... if the directory has files then rm all the files in that directory. I'm not sure....
if ; then
run "rm -rf ${TSP_FILEPATH_PLUGIN_DIR}";
fi
run... (8 Replies)
Discussion started by: jdilts
8 Replies
10. Solaris
Hi,
I installed some packages required by an app built with python.
But when I try python setup.py install, I get the following error:
/opt/csw/lib/gcc/sparc-sun-solaris2.10/5.2.0/../../../../sparc-sun-solaris2.10/bin/as: unrecognized option `-m32'
Could anyone tell me what's wrong... (4 Replies)
Discussion started by: Kimkun
4 Replies
YACC(1) General Commands Manual YACC(1)
NAME
yacc - yet another compiler-compiler
SYNOPSIS
yacc [ option ... ] grammar
DESCRIPTION
Yacc converts a context-free grammar and translation code into a set of tables for an LR(1) parser and translator. The grammar may be
ambiguous; specified precedence rules are used to break ambiguities.
The output file, y.tab.c, must be compiled by the C compiler to produce a program This program must be loaded with a lexical analyzer func-
tion, yylex(void) (often generated by lex(1)), with a main(int argc, char *argv[]) program, and with an error handling routine, yyer-
ror(char*).
The options are
-o output Direct output to the specified file instead of y.tab.c.
-Dn Create file y.debug, containing diagnostic messages. To incorporate them in the parser, compile it with preprocessor symbol
yydebug defined. The amount of diagnostic output from the parser is regulated by value n. The value 0 reports errors; 1
reports reductions; higher values (up to 4) include more information about state transitions.
-v Create file y.output, containing a description of the parsing tables and of conflicts arising from ambiguities in the grammar.
-d Create file y.tab.h, containing #define statements that associate yacc-assigned `token codes' with user-declared `token names'.
Include it in source files other than y.tab.c to give access to the token codes.
-s stem Change the prefix of the file names y.tab.c, y.tab.h, y.debug, and y.output to stem.
-S Write a parser that uses Stdio instead of the print routines in libc.
The specification of yacc itself is essentially the same as the UNIX version described in the references mentioned below. Besides the -D
option, the main relevant differences are:
The interface to the C environment is by default through <libc.h> rather than <stdio.h>; the -S option reverses this.
The parser accepts UTF input text (see utf(6)), which has a couple of effects. First, the return value of yylex() no longer fits in
a short; second, the starting value for non-terminals is now 0xE000 rather than 257.
The generated parser can be recursive: actions can call yyparse, for example to implement a sort of #include statement in an inter-
preter.
Finally, some undocumented inner workings of the parser have been changed, which may affect programs that know too much about its
structure.
FILES
y.output
y.tab.c
y.tab.h
y.debug
y.tmp.*
temporary file
y.acts.*
temporary file
/sys/lib/yaccpar
parser prototype
/sys/lib/yaccpars
parser prototype using stdio
SOURCE
/sys/src/cmd/yacc.c
SEE ALSO
lex(1)
S. C. Johnson and R. Sethi, ``Yacc: A parser generator'', Unix Research System Programmer's Manual, Tenth Edition, Volume 2
B. W. Kernighan and Rob Pike, The UNIX Programming Environment, Prentice Hall, 1984
BUGS
The parser may not have full information when it writes to y.debug so that the names of the tokens returned by may be missing.
YACC(1)