用TypeScript实现的Let’s Build A Simple Interpreter
A implement of Let’s Build A Simple Interpreter with TypeScript
npm install
npm test
npm install
npm test
npm install
npm run test-all
npm install
npm run test-all
- 数据类型
- integer
- real
- boolean
- 变量
- 过程
- 函数
- 选择
- if
- else if
- else
- 循环
- for...do
- 数字运算
- +
- -
- *
- /
- div
- 逻辑运算
- and
- or
- not
- 关系运算
- =
- <>
- <
- <=
- >
- >=
- Data Types
- integer
- real
- boolean
- Variables
- Procedures
- Functions
- Flow Control
- if
- else if
- else
- Loops
- for...do
- Numerical Operators
- +
- -
- *
- /
- div
- Logical Operators
- and
- or
- not
- Comparison Operators
- =
- <>
- <
- <=
- >
- >=