Hi all. I have been working on a small project of mine. A programming language. https://github.com/agt-ishan/dolber
Above link is it's git repository.
I have been getting very strange error messages that make no sense to me.
The errors are produced by clang. Check the attached TAR archive. No. Don't check the github.
The errors: http://pastie.org/8453576#24
Highlighted line onwards.
COMMA is a member of the tokenType enum.
I have a constructor for token with token(tokenType type)
But it gives some incomprehensible error about a type mismatch.
> https://github.com/agt-ishan/dolber
> Above link is it's git repository.
> Check the attached TAR archive. No. Don't check the github.
¿what's the point then?
> I have a constructor for token with
> token(tokenType type)
> But it gives some incomprehensible error about a type mismatch.
You are misreading. It does not complain about token(COMMA), it complains about the return
Your function is supposed to return a `token' object, but for some reason you killed the token(const token&) copy constructor.
Instead you are using token(token&), as you cannot bind a temporary to a non-const reference, it fails.