Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ generated in the following situations:

### 2.0.5-dev

* [TRLC, API] Fix various typos in the documentation.

* [TRLC, LRM] Allow union types as tuple field types:
`tuple Ref { item [TypeA, TypeB] separator @ version Integer }` now
permits a tuple field to reference objects of any of the listed record types.
Expand Down
6 changes: 3 additions & 3 deletions documentation/TUTORIAL-API.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ from trlc.trlc import Source_Manager
import sys
```

Next we need create an instance of the source manager:
Next we need to create an instance of the source manager:

```python
mh = Message_Handler()
Expand All @@ -88,7 +88,7 @@ them. The
method parses all files, and on success returns a
[Symbol_Table](https://bmw-software-engineering.github.io/trlc/manual/ast.html#trlc.ast.Symbol_Table)
containing everything (types, checks, requirements, etc.). If there is
an error (used defined check or syntax error) then nothing is
an error (user defined check or syntax error) then nothing is
returned. I.e. once the API lets you have the symbol table you know
that everything is well formed and validated.

Expand All @@ -100,7 +100,7 @@ if symbols is None:
```

Finally, lets do something simple to see what happens. Here we just
iterate overt all the objects and print them.
iterate over all the objects and print them.

```python
for obj in symbols.iter_record_objects():
Expand Down
2 changes: 1 addition & 1 deletion documentation/TUTORIAL-TUPLES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This is part of the [TRLC Tutorial](TUTORIAL.md).

## Tuples

TRLC allows you to create used-defined algebraic datatypes, generally
TRLC allows you to create user-defined algebraic datatypes, generally
referred to as "tuples". For example:

```
Expand Down
2 changes: 1 addition & 1 deletion language-reference-manual/lrm.trlc
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ section "Layout and file structure" {
}

Dynamic_Semantics Order_Of_Evaluation_Unordered {
text = '''After references are resolved, used-defined checks are
text = '''After references are resolved, user-defined checks are
resolved on record objects. The order of record objects
is unspecified.'''
}
Expand Down
6 changes: 3 additions & 3 deletions trlc/ast.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def dump(self, indent=0): # pragma: no cover

This can be called for any :class:`Node` or
:class:`Symbol_Table`, and can be very helpful for debugging
or understanding the parse tree. The dump methods will produce
or understanding the parse tree. The dump method will produce
output like this::

Symbol_Table
Expand Down Expand Up @@ -2717,7 +2717,7 @@ class Composite_Type(Concrete_Type, metaclass=ABCMeta):
:attribute description: user-supplied description of the type or None
:type: str

:attribute checks: used-defined checks for this type (excluding \
:attribute checks: user-defined checks for this type (excluding \
inherited checks)
:type: list[Check]

Expand Down Expand Up @@ -3472,7 +3472,7 @@ def lookup_assuming(self, mh, name, required_subclass=None):
"""Retrieve an object from the table assuming its there

This is intended for the API specifically where you want to
e.g. find some used-defined types you know are there.
e.g. find some user-defined types you know are there.

:param mh: The message handler to use
:type mh: Message_Handler
Expand Down
Loading