Making a Language

This post is part of the making a language series . A series that teaches you how to implement a programming language using Rust.

This post covers name resolution. Desugaring left us with an Ast<String> that we can’t yet feed to type inference. Name resolution will turn that into a Ast<Var> that is ready for type checking by figuring out what the names in our program mean.

Why do we name things? A silly question, perhaps. No one had to tell me to name my pet rock Francis. One look at his sedimentary exterior was all it took to christen him.

Names help us identify with things. This is just as true in computers as it is in rock companions. In programming l…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help