Skip to content

Instantly share code, notes, and snippets.

View CinchBlue's full-sized avatar

Austin Tasato CinchBlue

View GitHub Profile
~/shock-project $ shock
! Found project in current working directory.
% let main = proc(argc: Int, argv: Array[Str]) { ... }
(/module)
$ insert class Point2D; focus .Point2D
% let main = proc(argc: Int, argv: Array[Str]) { ... }
/myuser/home/ $ mkdir shock-project
/myuser/home/ $ cd shock-project
~/shock-project/ $ shock
! New project.
% @
$ ins proc main
There is a number N such that N represents the amount of ambiguity in a C++ function F.
The above statement is ambiguous. Let us consider the following C++ function F(x):
bool F(bool x) {
if (x) {
return true;
} else {
return false;
}
}
#ifndef FRAME_H
#define FRAME_H
typedef address unsigned char;
typedef instruction unsigned char;
typedef mem_block unsigned char*;
class Frame {
public:
Frame* rtrace() {return parent;}

#Hyper Programming Language

Hyper is a new programming language that aims to:

  1. Maintain the power of C++ and C.
  2. Streamline the syntax of C-like languages for readability.
  3. Make embedding into programs easy
  4. Make inter-portability between C and C++ easy at compile-time and run-time.

##Types

@CinchBlue
CinchBlue / main.cpp
Created April 3, 2015 02:35
Sol file doesn't compile? Hm.
#include <iostream>
#include <string>
#include <sstream>
#include "lua.hpp"
#include "sol.hpp"
#include "Flexiglass.hpp"
template <typename T>
T unpack (boost::any& b)
#include <iostream>
#include <string>
#include <sstream>
#include "lua.hpp"
#include "sol.hpp"
#include "Flexiglass.hpp"
template <typename T>
T unpack (boost::any& b)
source:
"file.msk"
"list.msk"
"pair.msk"
;
func main() -> int:
File f
List[Pair] points
//In Mask, this is how you would structure your main function.
//It's similar to C, but even the main() function is of a mask type
//func takes the return type as its first argument for its construction
//Here, the : is similar to an open bracket
func main(argc, argv) -> int:
//var is the general data type.
//It is cast automatically to a String data by the compiler,