From 66cd06fb1545b9b40c38460126b3f671ea1f0f6c Mon Sep 17 00:00:00 2001 From: omahs <73983677+omahs@users.noreply.github.com> Date: Sun, 1 Sep 2024 08:07:01 +0200 Subject: [PATCH 1/3] fix typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 002414b32..937de129d 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ We assume below that all the Ada dependencies are installed under the ``GPR_PROJECT_PATH``, for example). * The dynamic linker has access to shared libraries (``$PREFIX/lib`` is in - ``LD_LIBRARY_PATH``, for exmaple). + ``LD_LIBRARY_PATH``, for example). First, clone the `adasat` repository in the `langkit` subdirectory of the `langkit` repository: From de6e14aa997563ab98c570e3af8ab54a6da07b80 Mon Sep 17 00:00:00 2001 From: omahs <73983677+omahs@users.noreply.github.com> Date: Sun, 1 Sep 2024 08:09:07 +0200 Subject: [PATCH 2/3] fix typo --- doc/lexical_envs.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/lexical_envs.rst b/doc/lexical_envs.rst index dc06be2df..e108787f3 100644 --- a/doc/lexical_envs.rst +++ b/doc/lexical_envs.rst @@ -309,7 +309,7 @@ Env specs must use another mechanism to create such cross-unit links: named environments. When creating an environment, one can pass a list of names (symbols) to ``add_env`` to associate this new environment to each name. It is then possible to refer to this environment from the PLE of other units thanks -so these names: +to these names: * If the ``AddToEnvDestEnv`` struct passed to ``add_to_env``/``add_to_env_kv`` contains an env name, that name is used to fetch the corresponding named From a3e4ab37d432923a1242fc1143ea293444bccac6 Mon Sep 17 00:00:00 2001 From: omahs <73983677+omahs@users.noreply.github.com> Date: Sun, 1 Sep 2024 08:12:29 +0200 Subject: [PATCH 3/3] fix typo --- doc/tutorial.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/tutorial.rst b/doc/tutorial.rst index 7d63f2578..8854311e3 100644 --- a/doc/tutorial.rst +++ b/doc/tutorial.rst @@ -246,7 +246,7 @@ right you have what should be done with it: Only exact input strings trigger ``Literal`` matchers while the input is matched against a regular expression with ``Pattern`` matchers. Note that the order of rules is meaningful: here, the input is matched first against keywords -and then only if there is no match, identifers and number patterns are matched. +and then only if there is no match, identifiers and number patterns are matched. If ``Literal`` rules appeared at the end, ``def`` would always be emitted as an identifier. @@ -436,7 +436,7 @@ colon. extern_decl=ExternDecl('extern', G.prototype), -This one is interesting: inside the parens, we matches the ``extern`` keyword +This one is interesting: inside the parens, we match the ``extern`` keyword followed by what the ``prototype`` rule matches. Then, thanks to the ``ExternDecl`` call, we take the content we matched and create an ``ExternDecl`` AST node to hold the result.