Skip to content

Commit

Permalink
Merge pull request #1776 from ibr4qr/patch-1
Browse files Browse the repository at this point in the history
Typo mistake in architecture.md
  • Loading branch information
ai committed Sep 26, 2022
2 parents 90ef630 + ff855ba commit 4c1964c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ That being said, there are few ways to write a parser.
A lot of parsers like [`@babel/parser` (parser behind Babel)](https://github.com/babel/babel/tree/master/packages/babel-parser), [`CSSTree`](https://github.com/csstree/csstree) were written in such way.
The main reasons to separate tokenization from parsing steps are performance and abstracting complexity.

Let think about why the second way is better for our needs.
Let's think about why the second way is better for our needs.

First of all, because string to tokens step takes more time than parsing step. We operate on large source string and process it char by char, this is why it is very inefficient operation in terms of performance and we should perform it only once.

Expand Down

0 comments on commit 4c1964c

Please sign in to comment.