项目作者: drift-lang

项目描述 :
Implementation of minimal bytecode language
高级语言: C++
项目地址: git://github.com/drift-lang/drift-cpp.git
创建时间: 2021-02-14T08:09:10Z
项目社区:https://github.com/drift-lang/drift-cpp

开源协议:GNU General Public License v3.0

下载


The Drift Programming Language

Refined, minimalist, modern, beautiful

  • Written in C++
  • Minimalist grammar, 14 keywords, 40 bytecode
  • Frame and Stack structure interpreter
  • Bytecode virtual machine

For documentation and project architecuture,
visit the official website https://drift-lang.fun/
Basic grammatical format of drift, please check the instance code awesome.ft

It’s a toy language, Have Fun!!

Build

  • Switch CC field in Makefile and specify your g++ compiler path
  • The development version is 10.2.0
  1. make
  2. make install

To install:

  1. export PATH=$PWD:$PATH

To run:

  1. drift # REPL MODE
  2. drift <ft file> # FILE MODE
  3. drift -d # REPL AND DEBUG MODE
  4. drift <ft file> -d # FILE AND DEBUG MODE
  5. drift -b # REPL AND DIS BYTECODE
  6. drift <ft file> -b # FILE AND DIS BYTECODE

To clean:

  1. make clean

Collaborative development

  • Lack of FFI support
  • Syntax highlighting support for Virtual Studio Code, tool directory
  • Standard library and bug testing, etc

License

  1. Copyright (c) 2021 bingxio(丙杺,黄菁). All rights reserved.
  2. GNU General Public License, more to see file: LICENSE
  3. https://www.gnu.org/licenses
  4. THE DRIFT PROGRAMMING LANGUAGE
  5. https://github.com/bingxio/drift
  6. https://www.drift-lang.fun/