Skip to content

shiftonetothree/interpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pascal子集解释器

Interpreter for subset of Pascal

A implement of Let’s Build A Simple Interpreter with TypeScript

运行最终版本

npm install
npm test

Run latest version

npm install
npm test

运行所有版本

npm install
npm run test-all

Run all version

npm install
npm run test-all

支持的语法

  • 数据类型
    • integer
    • real
    • boolean
  • 变量
  • 过程
  • 函数
  • 选择
    • if
    • else if
    • else
  • 循环
    • for...do
  • 数字运算
    • +
    • -
    • *
    • /
    • div
  • 逻辑运算
    • and
    • or
    • not
  • 关系运算
    • =
    • <>
    • <
    • <=
    • >
    • >=

Feature

  • 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
    • =
    • <>
    • <
    • <=
    • >
    • >=

About

A implement of Let’s Build A Simple Interpreter with TypeScript

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages