Skip to content

Commit d749b83

Browse files
author
james
committed
ql lang spec: update links
1 parent 21cdf89 commit d749b83

File tree

12 files changed

+22
-22
lines changed

12 files changed

+22
-22
lines changed

docs/language/learn-ql/beginner/cross-the-river.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ the given path without revisiting any previously visited states.
203203
revisiting any previous states, and there is a ``safeFerry`` action from the intermediate state to
204204
the result state.
205205
(Hint: To check whether a state has previously been visited, you could check if
206-
there is an `index of <https://help.semmle.com/QL/ql-spec/language.html#built-ins-for-string>`__
206+
there is an `index of <ql-language-specification#built-ins-for-string>`__
207207
``visitedStates`` at which the state occurs.)
208208

209209
.. container:: toggle

docs/language/learn-ql/introduction-to-ql.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ You can write simple queries using the some of the basic functions that are avai
5353
Exercise 1
5454
~~~~~~~~~~
5555

56-
Write a query which returns the length of the string ``"lgtm"``. (Hint: `here <https://help.semmle.com/QL/ql-spec/language.html#built-ins-for-string>`__ is the list of the functions that can be applied to strings.)
56+
Write a query which returns the length of the string ``"lgtm"``. (Hint: `here <ql-language-specification#built-ins-for-string>`__ is the list of the functions that can be applied to strings.)
5757

5858
➤ `See answer in the query console on LGTM.com <https://lgtm.com/query/2103060623/>`__
5959

docs/language/ql-handbook/annotations.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Overview of annotations
4141

4242
This section describes what the different annotations do, and when you can use them.
4343
You can also find a summary table in the Annotations section of the
44-
`QL language specification <https://help.semmle.com/QL/ql-spec/language.html#annotations-in-java>`_.
44+
`QL language specification <ql-language-specification#annotations-in-java>`_.
4545

4646
.. index:: abstract
4747
.. _abstract:

docs/language/ql-handbook/evaluation-of-ql-programs.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ A QL program is evaluated from the bottom up, so a predicate is usually only eva
2121
all the predicates it depends on are evaluated.
2222

2323
The database includes sets of ordered tuples for the `built-in predicates
24-
<https://help.semmle.com/QL/ql-spec/language.html#built-ins>`_ and :ref:`external predicates <external>`.
24+
<ql-language-specification#built-ins>`_ and :ref:`external predicates <external>`.
2525
Each evaluation starts from these sets of tuples.
2626
The remaining predicates and types in the program are organized into a number of layers, based
2727
on the dependencies between them.
@@ -33,7 +33,7 @@ results of the program. The results are sorted according to any ordering directi
3333
(``order by``) in the queries.
3434

3535
For more details about each step of the evaluation process, see the "`QL language specification
36-
<https://help.semmle.com/QL/ql-spec/language.html#evaluations-of-ql-programs>`_."
36+
<ql-language-specification#evaluations-of-ql-programs>`_."
3737

3838
Validity of programs
3939
********************

docs/language/ql-handbook/expressions.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ You can express certain values directly in QL, such as numbers, booleans, and st
5555
"hello"
5656
"They said, \"Please escape quotation marks!\""
5757
58-
See `String literals <https://help.semmle.com/QL/ql-spec/language.html#string-literals-string>`_
58+
See `String literals <ql-language-specification#string-literals-string>`_
5959
in the QL language specification for more details.
6060

6161
Note: there is no "date literal" in QL. Instead, to specify a :ref:`date <date>`, you should
@@ -529,7 +529,7 @@ The following table lists some examples of different forms of ``any`` expression
529529
+------------------------------------------+-------------------------------------------------+
530530

531531
.. note::
532-
There is also a `built-in predicate <https://help.semmle.com/QL/ql-spec/language.html#non-member-built-ins>`_
532+
There is also a `built-in predicate <ql-language-specification#non-member-built-ins>`_
533533
``any()``. This is a predicate that always holds.
534534

535535
Unary operations

docs/language/ql-handbook/formulas.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Order
3333

3434
To compare two expressions using one of these order operators, each expression must have a type
3535
and those types must be :ref:`compatible <type-compatibility>` and
36-
`orderable <https://help.semmle.com/QL/ql-spec/language.html#ordering>`_.
36+
`orderable <ql-language-specification#ordering>`_.
3737

3838
+--------------------------+--------+
3939
| Name | Symbol |

docs/language/ql-handbook/lexical-syntax.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Lexical syntax
66
The QL syntax includes different kinds of keywords, identifiers, and comments.
77

88
For an overview of the lexical syntax, see "`Lexical syntax
9-
<https://help.semmle.com/QL/ql-spec/language.html#lexical-syntax>`_" in the QL language specification.
9+
<ql-language-specification#lexical-syntax>`_" in the QL language specification.
1010

1111
.. index:: comment, QLDoc
1212
.. _comments:
@@ -15,7 +15,7 @@ Comments
1515
********
1616

1717
All standard one-line and multiline comments, as described in the "`QL language specification
18-
<https://help.semmle.com/QL/ql-spec/language.html#comments>`_," are ignored by the QL
18+
<ql-language-specification#comments>`_," are ignored by the QL
1919
compiler and are only visible in the source code.
2020
You can also write another kind of comment, namely **QLDoc comments**. These comments describe
2121
QL entities and are displayed as pop-up information in QL editors. For information about QLDoc

docs/language/ql-handbook/modules.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ a class ``OneTwoThree``::
2525
}
2626
}
2727

28-
The name of a module can be any `identifier <https://help.semmle.com/QL/ql-spec/language.html#identifiers>`_
28+
The name of a module can be any `identifier <ql-language-specification#identifiers>`_
2929
that starts with an uppercase or lowercase letter.
3030

3131
``.ql`` or ``.qll`` files also implicitly define modules.
@@ -178,5 +178,5 @@ for example ``import javascript as js``.
178178
The ``<module_expression>`` itself can be a module name, a selection, or a qualified
179179
reference. For more information, see ":ref:`name-resolution`."
180180

181-
For information about how import statements are looked up, see "`Module resolution <https://help.semmle.com/QL/ql-spec/language.html#module-resolution>`__"
181+
For information about how import statements are looked up, see "`Module resolution <ql-language-specification#module-resolution>`__"
182182
in the QL language specification.

docs/language/ql-handbook/name-resolution.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ statement as follows:
7474
#. If the compiler can't find the library file using the above two checks, it looks up ``examples/security/MyLibrary.qll``
7575
relative to each library path entry.
7676
The library path is usually specified using the ``libraryPathDependencies`` of the ``qlpack.yml`` file, though it may also depend on the tools you use to run your query, and whether you have specified any extra settings.
77-
For more information, see "`Library path <https://help.semmle.com/QL/ql-spec/language.html#library-path>`__" in the QL language specification.
77+
For more information, see "`Library path <ql-language-specification#library-path>`__" in the QL language specification.
7878

7979
If the compiler cannot resolve an import statement, then it gives a compilation error.
8080

@@ -146,7 +146,7 @@ Namespaces
146146
**********
147147

148148
When writing QL, it's useful to understand how namespaces (also known as
149-
`environments <https://help.semmle.com/QL/ql-spec/language.html#name-resolution>`_) work.
149+
`environments <ql-language-specification#name-resolution>`_) work.
150150

151151
As in many other programming languages, a namespace is a mapping from **keys** to
152152
**entities**. A key is a kind of identifier, for example a name, and a QL entity is
@@ -173,7 +173,7 @@ In particular:
173173
- The **global module namespace** is empty.
174174
- The **global type namespace** has entries for the :ref:`primitive types <primitive-types>` ``int``, ``float``,
175175
``string``, ``boolean``, and ``date``, as well as any :ref:`database types <database-types>` defined in the database schema.
176-
- The **global predicate namespace** includes all the `built-in predicates <https://help.semmle.com/QL/ql-spec/language.html#built-ins>`_,
176+
- The **global predicate namespace** includes all the `built-in predicates <ql-language-specification#built-ins>`_,
177177
as well as any :ref:`database predicates <database-predicates>`.
178178

179179
In practice, this means that you can use the built-in types and predicates directly in a QL module (without
@@ -289,7 +289,7 @@ The type namespace of ``S`` has entries for:
289289
The predicate namespace of ``Villagers`` has entries for:
290290
- The predicate ``isBald``, with arity 1.
291291
- Any predicates (and their arities) exported by ``tutorial``.
292-
- The `built-in predicates <https://help.semmle.com/QL/ql-spec/language.html#built-ins>`_.
292+
- The `built-in predicates <ql-language-specification#built-ins>`_.
293293

294294
The predicate namespace of ``S`` has entries for:
295295
- All the above predicates.

docs/language/ql-handbook/predicates.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ The `arity <https://en.wikipedia.org/wiki/Arity>`_ of these predicates is one an
3333
In general, all tuples in a predicate have the same number of elements. The **arity** of
3434
a predicate is that number of elements, not including a possible ``result`` variable. For more information, see ":ref:`predicates-with-result`."
3535

36-
There are a number of `built-in predicates <https://help.semmle.com/QL/ql-spec/language.html#built-ins>`_
36+
There are a number of `built-in predicates <ql-language-specification#built-ins>`_
3737
in QL. You can use these in any queries without needing to :ref:`import <importing-modules>`
3838
any additional modules. In addition to these built-in predicates, you can also define your
3939
own:
@@ -45,7 +45,7 @@ When defining a predicate, you should specify:
4545

4646
#. The keyword ``predicate`` (for a :ref:`predicate without result <predicates-without-result>`),
4747
or the type of the result (for a :ref:`predicate with result <predicates-with-result>`).
48-
#. The name of the predicate. This is an `identifier <https://help.semmle.com/QL/ql-spec/language.html#identifiers>`_
48+
#. The name of the predicate. This is an `identifier <ql-language-specification#identifiers>`_
4949
starting with a lowercase letter.
5050
#. The arguments to the predicate, if any, separated by commas. For each argument, specify the
5151
argument type and an identifier for the argument variable.

0 commit comments

Comments
 (0)