
- Order:
- Duration: 9:36
- Published: 17 Aug 2010
- Uploaded: 09 Mar 2011
- Author: PrecisioS1
Lex reads an input stream specifying the lexical analyzer and outputs source code implementing the lexer in the C programming language.
Though traditionally proprietary software, versions of Lex based on the original AT&T; code are available as open source, as part of systems such as OpenSolaris and Plan 9 from Bell Labs. Another popular open source version of Lex is Flex, the "fast lexical analyzer".
/*** Definition section ***/%{ /* C code to be copied verbatim */ #include
%} /* This tells flex to read only one input file */ %option noyywrap
%% /*** Rules section ***/
/* [0-9]+ matches a string of one or more digits */ [0-9]+ { /* yytext is a string containing the matched text. */ printf("Saw an integer: %s\n", yytext); }
. { /* Ignore all other characters. */ }
%% /*** C Code section ***/
int main(void) { /* Call the lexer, then quit. */ yylex(); return 0; }
If this input is given to flex, it will be converted into a C file, lex.yy.c. This can be compiled into an executable which matches and outputs strings of integers. For example, given the input: abc123z.!&*2ghj6 the program will print: Saw an integer: 123 Saw an integer: 2 Saw an integer: 6
.l
is a lex source file. The make internal macro LFLAGS
can be used to specify lex options to be invoked automatically by make.
Category:Compiling tools Category:Parser generators Category:Unix programming tools Category:Unix SUS2008 utilities
This text is licensed under the Creative Commons CC-BY-SA License. This text was originally published on Wikipedia and was developed by the Wikipedia community.
Name | Lex Luger |
---|---|
Names | Lex LugerThe Total PackageThe Narcissist |
Height | better known by his ring name Lex Luger, is an American former professional wrestler and football player. He is best known for his work with the National Wrestling Alliance (NWA), World Championship Wrestling (WCW), and the World Wrestling Federation (WWF). |
Category:1958 births Category:Living people Category:American bodybuilders Category:American Christians Category:American professional wrestlers Category:American television actors Category:People from Erie County, New York Category:People from Atlanta, Georgia Category:People from Marietta, Georgia Category:American sportspeople of German descent
This text is licensed under the Creative Commons CC-BY-SA License. This text was originally published on Wikipedia and was developed by the Wikipedia community.
Name | Waka Flocka Flame |
---|---|
Background | solo_singer |
Birth name | Juaquin Malphurs |
Born | May 31, 1986Jamaica, Queens, New York |
Origin | Atlanta, Georgia, United States |
Genre | Hip hop, Crunk, Gangsta rap |
Years active | 2008-present |
Label | 1017 Brick Squad, Warner Bros., Asylum, Mizay |
Associated acts | 1017 Brick Squad, Gucci Mane, Roscoe Dash |
Gucci Mane fired Debra Antney as his manager. Despite rumors, there is no animosity between the two rappers due to this event. In a MTV interview, both Gucci Mane and Waka Flocka Flame affirmed that their relationship is in good standing even though they no longer speak. In early September however, Gucci Mane was shown at Flocka's Flockaveli listening party supporting his artist.
Category:1986 births Category:Living people Category:2000s rappers Category:2010s rappers Category:African American rappers Category:American shooting survivors Category:People from Clayton County, Georgia Category:People from Queens Category:Rappers from Atlanta, Georgia Category:Warner Bros. Records artists
This text is licensed under the Creative Commons CC-BY-SA License. This text was originally published on Wikipedia and was developed by the Wikipedia community.