You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/glossary/glossary.mdx
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -12,13 +12,15 @@ A source file with the `.lf` extension, representing a Lingua Franca (LF) progra
12
12
13
13
### Package
14
14
A collection of LF source files and directories, along with a `Lingo.toml` manifest file that defines the package configuration. Every package must include an `src/` directory containing the LF source files.
15
-
The **package root** is the top-level directory where both the `Lingo.toml` file and the `src/` directory reside, serving as the main directory for the package.
15
+
16
+
### Package Root
17
+
The **package root** is the top-level directory of a package where both the `Lingo.toml` file and the `src/` directory reside.
16
18
17
19
### Project
18
-
Another term for a [package](#package).
20
+
Another term for a [package](#package) that is under development. Each [LF file](#lf-file) is assumed to reside in a package, meaning it is located somewhere in the file system in a directory called `src`, in some directory that serves as the (package root)[#package-root].
19
21
20
22
### Library File
21
-
An LF file containing one or more reactors intended for reuse, designed to be imported into multiple LF files.
23
+
An LF file containing one or more reactors intended for reuse, designed to be imported into other LF files.
22
24
23
25
### Package Manager
24
26
A software tool that automates the installation, configuration, and management of packages. In the LF ecosystem, the `lingo` package manager is used to manage LF packages and dependencies.
Copy file name to clipboardExpand all lines: docs/tools/code-extension.mdx
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -12,12 +12,12 @@ The Lingua Franca extension for Visual Studio Code (VS Code) provides syntax-dir
12
12
13
13
## Usage
14
14
15
-
### Creating a New Package
15
+
### Creating a New Project
16
16
17
-
You can create a new LF [package](../glossary/glossary.mdx#package) either manually by creating an LF file or by using the [Lingo Package Manager](https://github.com/lf-lang/lingo).
17
+
You can create a new LF [project](../glossary/glossary.mdx#project) either manually by creating an LF file or by using the [Lingo Package Manager](https://github.com/lf-lang/lingo).
18
18
19
-
#### Option 1: Create an LF Package Using the Lingo Package Manager
20
-
1. After [installing the Lingo Package Manager](https://www.lf-lang.org/docs/installation#lingo), create an empty directory with the desired name for your LF package.
19
+
#### Option 1: Create an Project Using the Lingo Package Manager
20
+
1. After [installing the Lingo Package Manager](https://www.lf-lang.org/docs/installation#lingo), create an empty directory to serve as the root of your new package.
21
21
2. Open the folder in VS Code.
22
22
3. Open the terminal in this folder and run the <kbd>lingo init</kbd> command.
23
23
@@ -30,7 +30,7 @@ This will set up a new LF package with the following structure:
30
30
└── └── Lingo.toml # Configuration file for current package
#### Option 2: Create a new[LF File](../glossary/glossary.mdx#lf-file)
34
34
1. Go to <kbd>File > New File...</kbd> and select `New Lingua Franca File`.
35
35
2. Save the file in a directory called `src` to ensure that generated code is placed in a parallel `src-gen` directory. For example, if your file is called `Foo.lf`, the directory structure after building will look like this:
36
36
@@ -47,9 +47,9 @@ This will set up a new LF package with the following structure:
47
47
48
48
If you manually create the `Lingo.toml` file, place it adjacent to the `src` folder in the root directory of the package. This file serves as a configuration for the package, allowing you to specify the package name, version, and other metadata, including any dependencies you want to install.
49
49
50
-
### Opening an Existing LF package
50
+
### Opening an Existing LF project
51
51
52
-
To open an existing LF package in VS Code, select the root directory of your Lingua Franca package as your workspace.
52
+
To open an existing LF project in VS Code, select the [package root](../glossary/glossary.mdx#package-root) as your workspace.
53
53
54
54
The correct structure of the LF package should look like this:
0 commit comments