Coder Social home page Coder Social logo

hawk-cpp's Introduction

Hawk

Hawk is a languaged designed to function very similar to C++, but borrowing elements from Haskell's type system and clean syntax style. Hawk is intended to strike a balance between clarity and control. Check out the prototype code for examples of how a Hawk program should look. Currently the compiler needs to be built, which you can find in hawkc. As time goes on, this will eventually contain the base toolchain for development with Hawk

Building

Requires Flex, Bison, Boost, LLVM, and GTest. To build hawk, run the following command in the root directory.

mkdir build && cd build && cmake ..

Symbol Cheatsheet

Hawk syntax mostly avoids the use of reserved keywords. Instead, hawk makes use of operator symbols to declare variables, functions, and data types.

Module System

Symbol Meaning
:: Module
-> Import module
=> Import module as Qualified

Expression System

Symbol Meaning
$ Declare Variable
# Declare Value
= Assignment
:= Define function
^ Return

Type System

Symbol Meaning
:- Record Datatype (Object) or Algebraic Datatype (enum)
:~ Typeclass
:+ Implementation
<: Subtype of
! Immutable
* Pointer
& Reference

Toolchain

Compiler: hkc

  • Helpful compiler errors, that follow a standard for an ide to manage.

Debugger: hdb

Project Manager: nest

Project Package: egg

Documentation Generator: owl

Linter: eagle

Standard Libary: Core

Main repository: flock.io

X-Plat GUI library: peacock

IDE: Sky

hawk-cpp's People

Contributors

zettablade avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.