probs compiling lex


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting probs compiling lex
# 1  
Old 04-14-2004
probs compiling lex

this is my lex file ------------ test.l

%%
[A-Z]printf("%c",yytext[0]+'a'-'A');.ECHO;


how do i compile it

$ lex test.l cc lex.yy.c -o test -ll <------|
|
if this is correct do i add this line--------| @the command line or does it get added into the code file
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Virtualization and Cloud Computing

Connection probs in virt. OSolaris in Qemu under Ubuntu

Hi, I'm trying to do this: Set up OpenSolaris with Qemu (Ubuntu is hostOS). I was able to get it up and running and I have installed it on my .img. But now I need internet connection. On my Ubuntu host I did this: #brctl addbr br0 #tunctl #brctl addif br0 wlan0 #brctl addif br0 tap0... (1 Reply)
Discussion started by: fisfia
1 Replies

2. UNIX for Dummies Questions & Answers

probs executing crontab script

Hi everyone In an existing crontab script for the root user, I've added 5 new lines of code, however for some unknown reason, these lines of code were not executed. Here is what I did 30 0 * * * ./usr/people/atlab/jamesgoh/disk_reader/disk_reporter /picnic 30 0 * * *... (6 Replies)
Discussion started by: JamesGoh
6 Replies

3. Programming

probs adding linker option in g++

Hi all Im trying to compile a C++ program, however Im having issues trying to link a particular library to the compiling and linking statement. Here is what Im doing g++ mips4 -std=c++98 -g disk_reporter.cpp -o disk_reporter If I do this alone, the linker complains that library... (2 Replies)
Discussion started by: JamesGoh
2 Replies

4. Programming

probs compiling with gcc + lpthread

Im trying to write a program atm which uses mutexes to control thread access to a certain code section ( the critical section). However, whenever I compile the code using gcc I get the following message from gcc Unresolved text symbol "pthread_mutex_lock" Unresolved text symbol... (1 Reply)
Discussion started by: JamesGoh
1 Replies

5. Programming

regarding lex regular expression

Hi all I am using lex for my application scanning and I need to skip some lines for which I don't know the exact pattern. So, could anybody tell me the regular expression to display lines NOT beginning with the specified pattern. I know how to display lines beginning with the... (1 Reply)
Discussion started by: axes
1 Replies

6. UNIX for Dummies Questions & Answers

hi probs with rm command

hi guys... i m using rm *.zip or rm -rf *.zip while removing from a server path recursively, i m getting "Remove directory operation failed." if i use rm* .zip i m getting as invalid command and none of the files are removed.. please help where m i wrong when i execute the... (13 Replies)
Discussion started by: madhu_aqua14
13 Replies

7. Linux

lex for Chinese character

Hi, I need to read one chinese char using lex. I tried using "." ( period ) for pattern matching but in vain. Could anyone suggest me how do i proceeed. Sample pgm: to read a chinese char in single quotes. %{ #include <locale.h> %} %% \'.\' printf("SUCCESS\n"); . ... (0 Replies)
Discussion started by: suman_jakkula
0 Replies

8. Solaris

More SSH probs ...

Server 1 SSH Version Sun_SSH_1.0 Server 2 OpenSSH_3.8.1p1 Server 3 OpenSSH_3.8p1 I created the rsa keys on server1. Public and private. I copied the id_rsa.pub file to server2 and server3 and appended this to the authorized_keys file in the .ssh directory on both. (All servers using the root... (2 Replies)
Discussion started by: frustrated1
2 Replies

9. UNIX for Dummies Questions & Answers

copy probs

need help....just wanna copy all files with no extensions but with tree-informations to one dir first I make a new directory with all foldertrees...like find / -name "*" -type d >a1 sed -e 's/^/new/g' <a1 >b1 mkdir -p `cat a1` then I wanna copy all specific files with no... (12 Replies)
Discussion started by: svennie
12 Replies

10. UNIX for Dummies Questions & Answers

oracle probs on HPUX11

Hi all we r using hpUX11.00 9000 sever as oracle 8i db server... But the problem is we have 4 instances of dbs but upto my knowledge there are only to ports available for TNS listen... how can i configure or get wht ever it may be the other two ports for tns listener......... ... (2 Replies)
Discussion started by: Prafulla
2 Replies
Login or Register to Ask a Question
FLEX(1) 							   User Commands							   FLEX(1)

NAME
flex - the fast lexical analyser generator SYNOPSIS
flex [OPTIONS] [FILE]... DESCRIPTION
Generates programs that perform pattern-matching on text. Table Compression: -Ca, --align trade off larger tables for better memory alignment -Ce, --ecs construct equivalence classes -Cf do not compress tables; use -f representation -CF do not compress tables; use -F representation -Cm, --meta-ecs construct meta-equivalence classes -Cr, --read use read() instead of stdio for scanner input -f, --full generate fast, large scanner. Same as -Cfr -F, --fast use alternate table representation. Same as -CFr -Cem default compression (same as --ecs --meta-ecs) Debugging: -d, --debug enable debug mode in scanner -b, --backup write backing-up information to lex.backup -p, --perf-report write performance report to stderr -s, --nodefault suppress default rule to ECHO unmatched text -T, --trace flex should run in trace mode -w, --nowarn do not generate warnings -v, --verbose write summary of scanner statistics to stdout Files: -o, --outfile=FILE specify output filename -S, --skel=FILE specify skeleton file -t, --stdout write scanner on stdout instead of lex.yy.c --yyclass=NAME name of C++ class --header-file=FILE create a C header file in addition to the scanner --tables-file[=FILE] write tables to FILE Scanner behavior: -7, --7bit generate 7-bit scanner -8, --8bit generate 8-bit scanner -B, --batch generate batch scanner (opposite of -I) -i, --case-insensitive ignore case in patterns -l, --lex-compat maximal compatibility with original lex -X, --posix-compat maximal compatibility with POSIX lex -I, --interactive generate interactive scanner (opposite of -B) --yylineno track line count in yylineno Generated code: -+, --c++ generate C++ scanner class -Dmacro[=defn] #define macro defn (default defn is '1') -L, --noline suppress #line directives in scanner -P, --prefix=STRING use STRING as prefix instead of "yy" -R, --reentrant generate a reentrant C scanner --bison-bridge scanner for bison pure parser. --bison-locations include yylloc support. --stdinit initialize yyin/yyout to stdin/stdout --noansi-definitions old-style function definitions --noansi-prototypes empty parameter list in prototypes --nounistd do not include <unistd.h> --noFUNCTION do not generate a particular FUNCTION Miscellaneous: -c do-nothing POSIX option -n do-nothing POSIX option -? -h, --help produce this help message -V, --version report flex version SEE ALSO
The full documentation for flex is maintained as a Texinfo manual. If the info and flex programs are properly installed at your site, the command info flex should give you access to the complete manual. flex 2.5.35 February 2008 FLEX(1)