msv-lab / modus

A language for building Docker/OCI container images
GNU Affero General Public License v3.0
279 stars 9 forks source link

Add the source span to our type(s) #68

Closed thevirtuoso1973 closed 2 years ago

thevirtuoso1973 commented 2 years ago

Related to #40.

Example error report for an unknown predicate/literal (in the IR), although we should probably detect that it's an operator and report a different message: image

Adds position and a new type SpannedPosition which is similar to the pair approach and doesn't contain a reference to the corresponding string slice, to avoid lifetime and Rc issues.

Related to #32.