We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bd05a5f + 3ada142 commit 64a57f1Copy full SHA for 64a57f1
README.md
@@ -343,6 +343,14 @@ function parseBetterJSAlternative(code) {
343
344
**Good:**
345
```javascript
346
+function parseBetterJSAlternative(code) {
347
+ const tokens = tokenize(code);
348
+ const ast = lexer(tokens);
349
+ ast.forEach((node) => {
350
+ // parse...
351
+ });
352
+}
353
+
354
function tokenize(code) {
355
const REGEXES = [
356
// ...
@@ -367,14 +375,6 @@ function lexer(tokens) {
367
375
368
376
return ast;
369
377
}
370
-
371
-function parseBetterJSAlternative(code) {
372
- const tokens = tokenize(code);
373
- const ast = lexer(tokens);
374
- ast.forEach((node) => {
- // parse...
- });
-}
378
```
379
**[⬆ back to top](#table-of-contents)**
380
0 commit comments