Interpreter implementation in Java

In turn, 21 articles will implement the interpreter using Java. Initially, we will implement simple four arithmetic operations and gradually add functions. Eventually, it will read the script from the text file and even calculate the Fibonacci number.

1 Implement simple lexical analysis in Java

2 Implement simple parsing in Java

3 Implement a simple interpreter in Java

4 Add println to the interpreter

5 Corresponds to prioritization brackets

Supports 6 unary operations

7 Add a simple function definition and call

8 Corresponds to multiple arguments

9 Corresponds to the return value

Corresponds to 10 if statement

11 Corresponds to comparison operators and logical operators

Corresponds to 12 while statements

Compatible with 13 Scope

Corresponds to 14 function expressions

Corresponds to 15 character strings

Corresponds to 16 method calls

Corresponds to 17 arrays

Corresponds to 18 JSON-like object definitions

Supports 19 object creation

Corresponds to 20 static method calls

21 Read the script from a file and execute it

Recommended Posts

Interpreter implementation in Java
Boyer-Moore implementation in Java
Heapsort implementation (in java)
Implementation of gzip in java
Implementation of tri-tree in Java
3 Implement a simple interpreter in Java
Implementation of like function in Java
Partization in Java
Changes in Java 11
Rock-paper-scissors in Java
Pi in Java
FizzBuzz in Java
Implementation of DBlayer in Java (RDB, MySQL)
[java] sort in list
Read JSON in Java
Make Blackjack in Java
Rock-paper-scissors app in Java
Constraint programming in Java
Put java8 in centos7
NVL-ish guy in Java
Combine arrays in Java
"Hello World" in Java
Check Java toString () implementation
Callable Interface in Java
Comments in Java source
Azure functions in java
Format XML in Java
Simple htmlspecialchars in Java
Hello World in Java
Use OpenCV in Java
webApi memorandum in java
Type determination in Java
Ping commands in Java
Various threads in java
Zabbix API in Java
ASCII art in Java
Compare Lists in Java
POST JSON in Java
Express failure in Java
Create JSON in Java
Date manipulation in Java 8
What's new in Java 8
Use PreparedStatement in Java
What's new in Java 9,10,11
Parallel execution in Java
Initializing HashMap in Java
Try using RocksDB in Java
Read binary files in Java 1
Avoid Yubaba's error in Java
Get EXIF information in Java
Save Java PDF in Excel
[Neta] Sleep Sort in Java
Edit ini in Java: ini4j
Java history in this world
Let Java segfault in 6 lines
Try calling JavaScript in Java
Try developing Spresense in Java (1)
Try functional type in Java! ①
I made roulette in Java.
Create hyperlinks in Java PowerPoint
[Implementation] Java Process class notes