#Cannot Assign return value to Token struct
21 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
Well the function returns an int
Show us the declaration of get_next_token()
!sc
@wheat sigil
They're hard to read and prevent copying and pasting.
Also what is Token?
I'm gonna take a wild guess that you didn't include the header that has the function definition/the function isn't defined so it just assumed it's an extern returning int 
Or something like this
Also your function that you call in your lex function is get_next_token but the function immediately above is get_next_Token (i.e. with a capitalized T)
iirc that's a thing in C
Yeah so it's just an implicit function declaration thing
Because the function they call doesn't exist the compiler assumed it returns int
yea ... that fixed it 😅
Op fyi
If you call a function that isn't declared, the compiler will assume it's a function that returns int
!solved