Skip to main content

2 posts tagged with "lexer"

View All Tags

Build A Simple Interpreter with Rust Part0

· 2 min read
forfd8960
Author

What is Interpreter

From Wikipedia:

In computer science, an interpreter is a computer program that directly executes instructions written in a programming or scripting language, without requiring them previously to have been compiled into a machine language program. An interpreter generally uses one of the following strategies for program execution:

  1. Parse the source code and perform its behavior directly;
  2. Translate source code into some efficient intermediate representation or object code and immediately execute that;
  3. Explicitly execute stored precompiled bytecode made by a compiler and matched with the interpreter Virtual Machine.