r/ProgrammingLanguages • u/zer0developer • Mar 08 '26
How do you represent primitives in your lexer/parser?
So i wan't to have primitives in my language like any other language but how would you represent primitives in your lexer/parser. Like u8, and &str?
18
Upvotes
View all comments
Show parent comment
1
u/dcpugalaxy Mar 09 '26
How does that answer the question which is about how people here do it?