lex
- noun
- /lɛks/
- Specialized
- Lexing and parsing is a great example of coroutines in action; the wonder that is lex/yacc manages to generate C code that implements coroutines for lexing and parsing.
Examples
-
The software developer used lex to create a tokenizer for the programming language compiler.
-
To improve the efficiency of the parser, the team implemented lex as their lexical analyzer.
-
The lex.
-
Again, someone who accepts Socrates' critique of the lex talionis would be likely to be critical of vindictive behavior in matters of war and peace.
Academic text (2000) -
In compiler construction, lex plays a crucial role in transforming input strings into tokens.
Compounds
How Complete
Surface Forms
Etymology
The word lex for the program comes from the Greek lexis, which means 'word'. Think of lexical or lexicon; the program looks at words or small parts of text in code, so the name lex reminds you it handles 'words'.