What happens inside an interpreter?
An interpreter transforms source text into tokens, builds a representation of the program, and evaluates that representation. Each stage has a distinct responsibility.
InterpretersI'm Anubhav. I write about programming languages, interpreters, Go, and the discoveries that happen while building software.
An interpreter transforms source text into tokens, builds a representation of the program, and evaluates that representation. Each stage has a distinct responsibility.
InterpretersAn abstract syntax tree captures the structure of a program rather than its exact formatting. It gives later stages a useful model to analyse and execute.
ASTSmall command-line programs are a practical way to learn Go's types, error handling, packages, and standard library one concept at a time.
GoCode is read, changed, debugged, and extended long after it is first written. Clarity makes maintenance easier and reduces avoidable mistakes.
CraftSan is an experiment in language implementation, built around a lexer, recursive-descent parser, abstract syntax tree, and tree-walking evaluator. It has been a hands-on way to explore how programming languages work.
I'm a student interested in software development and the internals of programming languages. This site is where I document experiments, explain concepts I'm learning, and keep notes that may be useful to other developers.
Topics include interpreters, compiler fundamentals, Go, and practical software engineering.