Skip to content
This repository was archived by the owner on Jun 6, 2021. It is now read-only.

Feature: Better Compiler Errors #21

Open
Vengarioth opened this issue Sep 5, 2017 · 0 comments
Open

Feature: Better Compiler Errors #21

Vengarioth opened this issue Sep 5, 2017 · 0 comments

Comments

@Vengarioth
Copy link
Member

Vengarioth commented Sep 5, 2017

Feature: Better Compiler Errors

Summary

After all AST nodes have spans we should add nice error messages.

Examples

An example error message.

error: type `vec3` is unknown or not included.
D:\Workspace\xshade\examples\phong.xs:2:15
 1 | struct VertexInput {
 2 |     position: vec3,
   |               ^^^^ unknown type `vec3`
 3 | }
implementations for `vec3` are found in:
* std::vec3 (type alias for `Vector<f32; 3>`)

References

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant