|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en"> |
| 3 | +<head> |
| 4 | + <meta charset="UTF-8"> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 6 | + <title>Plang Documents - Introduction</title> |
| 7 | + <link rel="stylesheet" href="css/colors.css"> |
| 8 | + <link rel="stylesheet" href="css/main.css"> |
| 9 | + <link href=" https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel=" stylesheet" integrity=" sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin=" anonymous" > |
| 10 | + <script src=" https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity=" sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin=" anonymous" ></script> |
| 11 | +</head> |
| 12 | +<body> |
| 13 | + <div class="body"> |
| 14 | + <div class="side-bar"> |
| 15 | + <a href="index.html"> |
| 16 | + <img |
| 17 | + class="icon" |
| 18 | + src="https://avatars.githubusercontent.com/u/146694713?s=400&u=4e01b5afefbf7e40641702e5cbdf785ff183fe35&v=4" |
| 19 | + alt="P Icon" |
| 20 | + /></a> |
| 21 | + <ul> |
| 22 | + <li><a href="index.html">Introduction</a></li> |
| 23 | + <li><a class="current" href="getting-started.html">Getting Started</a></li> |
| 24 | + <ul> |
| 25 | + <li><a href="getting-started.html#installing">Installing</a></li> |
| 26 | + <li><a href="getting-started.html#pint-first-time">Running pint for the first time</a></li> |
| 27 | + </ul> |
| 28 | + </ul> |
| 29 | + </div> |
| 30 | + <div class="page-content"> |
| 31 | + <h1 class="page-title" id="getting-started">Getting Started</h1> |
| 32 | + <p>Simple tutorial on how to get started</p> |
| 33 | + <div class="accordion"> |
| 34 | + <div class="accordion-item" id="installing"> |
| 35 | + <h2 class="accordion-header" id="headingOne"> |
| 36 | + <button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne"> |
| 37 | + Installing |
| 38 | + </button> |
| 39 | + </h2> |
| 40 | + <div id="collapseOne" class="accordion-collapse collapse show" aria-labelledby="headingOne"> |
| 41 | + <div class="accordion-body"> |
| 42 | + <strong>This is your first step in the tutorial</strong> To get started, make sure you have installed npm. Check it by running: <code style="margin-right: 5px">npm -v</code> If that ran successfully, you can continue.<br>Now simply run: <code>npm i -g @p-lang/plang</code> |
| 43 | + </div> |
| 44 | + </div> |
| 45 | + </div> |
| 46 | + <div class="accordion-item" id="pint-first-time"> |
| 47 | + <h2 class="accordion-header" id="headingTwo"> |
| 48 | + <button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#collapseTwo" aria-expanded="true" aria-controls="collapseTwo"> |
| 49 | + Running pint for the first time |
| 50 | + </button> |
| 51 | + </h2> |
| 52 | + <div id="collapseTwo" class="accordion-collapse collapse" aria-labelledby="headingTwo"> |
| 53 | + <div class="accordion-body"> |
| 54 | + Now you can run a special command called <strong>pint</strong>. This is the P interpreter, aka the program you will run your P programs with. <br>You can also now use the prepl (P read-eval-proccess loop) to run P directly in your terminal to start the repl just run <code>pint</code> with no arguments to run a single file using <strong>pint</strong> run:<br><code>pint <filepath></code><br><br>Congrats you have successfully ran pint for the first time ever! |
| 55 | + </div> |
| 56 | + </div> |
| 57 | + </div> |
| 58 | + </div> |
| 59 | + </div> |
| 60 | + </div> |
| 61 | + <footer class="webfooter">© Plang 2023</footer> |
| 62 | + <script src="script/main.js"></script> |
| 63 | +</body> |
| 64 | +</html> |
0 commit comments