Difference between revisions of "Lexical analysis"
From Wiki @ Karl Jones dot com
Karl Jones (Talk | contribs) (→See also) |
Karl Jones (Talk | contribs) |
||
Line 1: | Line 1: | ||
− | In [[computer science]], '''lexical analysis''' is the process of converting a sequence of characters (such as a computer program or web page) into a sequence of tokens (strings with an identified "meaning"). | + | In [[computer science]], '''lexical analysis''' is the process of converting a [[sequence of characters]] (such as a [[computer program]] or [[web page]]) into a [[sequence of tokens]] (strings with an identified "meaning"). |
+ | |||
+ | == Description == | ||
A program that performs lexical analysis may be called a lexer, tokenizer, or scanner (though "scanner" is also used to refer to the first stage of a lexer). | A program that performs lexical analysis may be called a lexer, tokenizer, or scanner (though "scanner" is also used to refer to the first stage of a lexer). | ||
Line 7: | Line 9: | ||
== See also == | == See also == | ||
+ | * [[Computer program]] | ||
+ | * [[Computer programming]] | ||
+ | * [[Computer science]] | ||
* [[Compiler]] | * [[Compiler]] | ||
* [[Syntax (programming languages)]] | * [[Syntax (programming languages)]] |
Revision as of 09:29, 2 September 2015
In computer science, lexical analysis is the process of converting a sequence of characters (such as a computer program or web page) into a sequence of tokens (strings with an identified "meaning").
Description
A program that performs lexical analysis may be called a lexer, tokenizer, or scanner (though "scanner" is also used to refer to the first stage of a lexer).
Such a lexer is generally combined with a parser, which together analyze the syntax of programming languages, web pages, and so forth.
See also
External links
- Lexical analysis @ Wikipedia