Skip to content

Commit e78c674

Browse files
committed
Update README.md
1 parent 1afdb7c commit e78c674

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ npm install
5252

5353
### Code Overview
5454

55-
```/transpiler``` contains the two main components of the transpiler:
55+
```/transpiler``` contains the two main components of the transpiler and the API:
5656

5757
- Lexer: Generates a stream of tokens representing the lexical parts of the Swift input. The lexer uses a state object to store the token stream and other relevant information related to the Swift input. It is organized into three main files:
5858
- ```lexer.js``` iterates over the Swift code, separating it into individual parts to be evaluated based on their precedence in Swift.
@@ -64,7 +64,10 @@ npm install
6464
- ```parser.js``` is where the different modules come together to build the final tree output.
6565
- ```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.
6666

67-
Note about the CLI
67+
- API: Provides an interface for the CLI and transpiler web app to interact with the core transpiler.
68+
69+
```command.js``` contains the code for the command line interface
70+
- The CLI uses Commander.js for handling a variety of user inputs, and uses Bluebird for promises.
6871

6972
### Testing
7073

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