Skip to content

Commit ddf3881

Browse files
committed
Update README.md
1 parent 559e0ae commit ddf3881

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ npm install
5959
- ```lexerFunctions.js``` contains helper functions to handle particular lexical parts of Swift.
6060
- ```lexicalTypes.js``` organizes and lists the valid lexical tokens of Swift, such as keywords, operators, and punctuation.
6161

62-
- Parser
62+
- Parser: Generates an Abstract Syntax Tree from the tokens created in the lexer. The parser takes the token objects and builds a tree that represents the relationships of the different parts of the code, that is then turned into JavaScript using Escodegen.
63+
- The parser is brokend up into over 20 files, that handle different parts of the parsing process
64+
- ```parser.js``` is where the different modules come together to build the final tree output
65+
- ```rearrange``` are a group of functions that take the original tokens from the lexer and rearrange them in a manner that is conducive to building the AST so that it produces the equivalent JavaScript output of the Swift input
6366
- the AST is generated into JavaScript using Escodegen
6467

6568
Note about the CLI

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy