Skip to content

Commit

Permalink
slight typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitrySoshnikov committed Aug 11, 2011
1 parent 8a538a8 commit 0c8e91f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lesson-2.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@
* the semantics of our program and even doesn't touch
* the exact grammar. All it does is just separates logical
* syntactic *primitives* from which our grammar consists of.
* These primitive parts are called "synonyms".
* These primitive parts are called "tokens".
*
* Tokens are sequences of chars (or a single char). For example, we have
* digit token "115" which consists of three chars "1", "1" and "5".
*
* So our task in this lesson is to separate tokens from the input stream.
* For this we need an object which is called "tokenizer". Another names of
* it are "lexer" or "scanner" (all three are ). So let's implement
* it are "lexer" or "scanner" (all three are synonyms). So let's implement
* it for our AE grammar.
*
*/
Expand Down Expand Up @@ -203,4 +203,4 @@ console.log(Lexer.tokenize("(10 + 5) - (1 - 4)"));
// var TokenTypes = {digit: 0, simbol: 1};
// function Token(type, value) {...}
// return new Token(TokenTypes.digit, tokenValue);
//
//

0 comments on commit 0c8e91f

Please sign in to comment.