Lex/YACC: Difference between revisions
Appearance
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
Lex and | '''Lex''' and [[Yacc]] are parser generating tools originally developed for the MULTICS operating system, basically Lex does lexical analysis while Yacc handles syntax analysis. The two are always distributed together and compliment each other but are also useful on their own to a degree. | ||
'''Lex''' is a tool that looks for logical units (lexemes) in sequences of characters. This is typically the first tasks a compiler does after it has when he is has to do is read the source program and group its characters into lexemes. | |||
==Lex/YACC compatible tools that run under OS/2== | ==Lex/YACC compatible tools that run under OS/2== | ||
* MKS lex & yacc | * MKS lex & yacc | ||
* [[flex]] | * [[flex]] | ||
* Thinkage YAY [http://hobbes.nmsu.edu/download/pub/os2/dev/util/yay-1_0.zip] | * Thinkage YAY [http://hobbes.nmsu.edu/download/pub/os2/dev/util/yay-1_0.zip] | ||
* [[Turbo Pascal Lex/YACC]] - Open source tool that uses L/Y syntax but outputs [[Turbo Pascal]] compatible code. | * [[Turbo Pascal Lex/YACC]] - Open source tool that uses L/Y syntax but outputs [[Turbo Pascal]] compatible code. | ||
;Editors with Lex file and YACC BNF file support | |||
* [[jEdit]] - Java based - Lex syntax highlighting built in, YACC available as a seperate download - Current | * [[jEdit]] - Java based - Lex syntax highlighting built in, YACC available as a seperate download - Current | ||
* [[NEdit]] - XFree86 - Autoindent, autocomplete and syntax highlighting for YACC BNF files - Open source - Discontinued | * [[NEdit]] - XFree86 - Autoindent, autocomplete and syntax highlighting for YACC BNF files - Open source - Discontinued | ||
==Links== | |||
==Links | |||
* [http://dinosaur.compilertools.net/ Lex & YACC homepage] at Compilertools.net | * [http://dinosaur.compilertools.net/ Lex & YACC homepage] at Compilertools.net | ||
[[Category:Generic Unix Tools]][[Category:Parsing Tools]][[Category:Compiler construction]] | [[Category:Generic Unix Tools]][[Category:Parsing Tools]][[Category:Compiler construction]] |
Revision as of 23:02, 15 December 2017
Lex and Yacc are parser generating tools originally developed for the MULTICS operating system, basically Lex does lexical analysis while Yacc handles syntax analysis. The two are always distributed together and compliment each other but are also useful on their own to a degree.
Lex is a tool that looks for logical units (lexemes) in sequences of characters. This is typically the first tasks a compiler does after it has when he is has to do is read the source program and group its characters into lexemes.
Lex/YACC compatible tools that run under OS/2
- MKS lex & yacc
- flex
- Thinkage YAY [1]
- Turbo Pascal Lex/YACC - Open source tool that uses L/Y syntax but outputs Turbo Pascal compatible code.
- Editors with Lex file and YACC BNF file support
- jEdit - Java based - Lex syntax highlighting built in, YACC available as a seperate download - Current
- NEdit - XFree86 - Autoindent, autocomplete and syntax highlighting for YACC BNF files - Open source - Discontinued
Links
- Lex & YACC homepage at Compilertools.net