Skip to content

Commit

Permalink
Fix typo and broken link (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesMeierSE authored May 16, 2024
1 parent f55b338 commit b11b2ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hugo/content/docs/introduction/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ To express any kind of relationship between elements in your language, you will
The process of resolving these references, i.e. identifying what element of your language hides behind a certain name, is called _linking_.
Performing the linking process in a deterministic manner with a lot of objects in your project requires sound linking design.

Langium accomplishes this feat by using the concept of 'scoping'. You likely know scopes from programming, where some variables are only available from certain scopes:
Langium accomplishes this feature by using the concept of 'scoping'. You likely know scopes from programming, where some variables are only available from certain scopes:

```ts
let x = 42;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ That's it! (Don't forget to run `npm run langium:generate` after updating the gr

![screenshot with fixed grammar](fixed-1-grammar.png)

Since the `name` property is used for cross-references by the parser rule for greetings, "Hello" needs to be supported here as well. For that we recommend to introduce a [data type rule](/docs/grammar-language/#data-type-rules) like "PersonID" in the example, since it makes it easier to support more keywords in the future:
Since the `name` property is used for cross-references by the parser rule for greetings, "Hello" needs to be supported here as well. For that we recommend to introduce a [data type rule](/docs/reference/grammar-language/#data-type-rules) like "PersonID" in the example, since it makes it easier to support more keywords in the future:

```langium
Person: 'person' name=PersonID;
Expand Down

0 comments on commit b11b2ba

Please sign in to comment.