Skip to content
This repository has been archived by the owner on Jul 30, 2021. It is now read-only.

drift-lang/drift-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
make
make install

To install:

export PATH=$PWD:$PATH

To run:

drift                 # REPL MODE
drift <ft file>	      # FILE MODE

drift -d              # REPL AND DEBUG MODE
drift <ft file> -d    # FILE AND DEBUG MODE

drift -b              # REPL AND DIS BYTECODE
drift <ft file> -b    # FILE AND DIS BYTECODE

To clean:

make clean

Collaborative development

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

License

Copyright (c) 2021 bingxio(丙杺,黄菁). All rights reserved.

GNU General Public License, more to see file: LICENSE
https://www.gnu.org/licenses

          THE DRIFT PROGRAMMING LANGUAGE

          https://github.com/bingxio/drift

          https://www.drift-lang.fun/