15 Commits

Author SHA1 Message Date
Pierre-Marie de Rodat
66fa86a72a User Manual: extend tutorials to describe syntax fields for nodes 2023-06-13 11:50:54 +00:00
Pierre-Marie de Rodat
edf04f30a7 User Manual: minor typographic adjustments
Section title don't capitalize each word ("Ada API reference").
Harmonize existing titles.
2023-06-13 11:50:54 +00:00
Laurent Thévenoux
c1732e2847 Documentation: minor typo fix 2022-09-01 09:25:35 +00:00
Pierre-Marie de Rodat
b8d5e16c38 Python API: rework GPR projects handling
This commit introduces a new class that represents a loaded project
(GPRProject), created from the usual project loading arguments (project
file, scenario variables, target and RTS info). This new class provides
two methods: create_unit_provider(project=None) to create a unit
provider wrapping a project and source_files(mode) to query the list of
source files in a project.

It also removes the now obsolete SourceFiles class (recently added), but
preserves the UnitProvider.for_project method to avoid breaking existing
user code (been there for several years).

Closes #932
2022-07-18 13:14:27 +02:00
Pierre-Marie de Rodat
c64d017951 User Manual: fix code highlighting in the Python tutorial
For #932
2022-07-18 13:14:27 +02:00
Pierre-Marie de Rodat
6ac778ad43 Update the list of officially supported Python versions
TN: V401-011
2022-04-12 15:01:18 +00:00
Pierre-Marie de Rodat
e056edc939 User Manual: add refs in the unit providers section in core concepts
TN: V307-009
2022-03-08 10:19:16 +00:00
Pierre-Marie de Rodat
3cf0edf16b Extend tutorials to cover the convenience functions to get source files
TN: UB29-005
2021-12-13 15:52:39 +01:00
Pierre-Marie de Rodat
9db9657d82 Python API tutorial: minor reformatting 2020-08-13 14:39:29 +02:00
Pierre-Marie de Rodat
eed6765499 Python tutorial: update the Python version requirement
TN: T511-017
2020-08-13 14:39:29 +02:00
Raphaël AMIARD
3edfe8e110 Fix #254: clarify documentation wrt. supported language versions 2019-09-23 14:19:41 +02:00
Pierre-Marie de Rodat
d844229a86 Python API tutorial: minor edits
TN: RC04-019
2018-12-05 10:59:46 +01:00
Pierre-Marie de Rodat
4214edf0af Python API tutorial: remove incorrect part
TN: RC04-019
2018-12-05 10:59:46 +01:00
Pierre-Marie de Rodat
92fc395419 Python API tutorial: fix scripts and expected outputs
TN: RC04-019
2018-12-05 10:59:46 +01:00
Raphaël AMIARD
44ea623175 RC04-019: First version of the python api tutorial 2018-12-04 18:22:37 +01:00