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
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
Corresponds to 14 function expressions
Corresponds to 15 character strings
Corresponds to 16 method calls
Corresponds to 18 JSON-like object definitions
Corresponds to 20 static method calls
21 Read the script from a file and execute it
Recommended Posts