Skip to content

Instantly share code, notes, and snippets.

destination "build/vendor"
package gtest, svn: "http://googletest.googlecode.com/svn/trunk/", revision: "682"
package llvm, tar: "http://llvm.org/releases/3.4/clang-3.4.src.tar.gz", signature: "http://llvm.org/releases/3.4/clang-3.4.src.tar.gz.sig"
package gtest, git: "https://github.com/alksl/googletest", revision: "be1b3b66822cc3929f3da700973cef88bf45849a"
cmake_minimum_required(VERSION 2.6)
project(schemese)
find_package(FLEX)
set(CMAKE_CXX_FLAGS "-g -Wall -std=c++11 -stdlib=libc++")
add_subdirectory(googletest)
enable_testing()
include_directories(${gtest_SOURCE_DIR}/include ${gtest_SOURCE_DIR})
#include <sstream>
#include <gtest/gtest.h>
#include <schemese/scanner.h>
namespace {
using namespace Schemese;
class ScannerTest : public ::testing::Test {
protected:
%{
#include <schemese/scanner.h>
#define YY_DEBUG 1
#undef YY_INPUT
#define YY_INPUT(buf,result,max_size) { \
result = Scanner::read(buf, max_size); \
}
using namespace Schemese;
%}
/sbin/ifconfig en0 ether $(/usr/bin/openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//')
%{
struct ScannerBuffer scanner_buffer;
#undef YY_INPUT
#define YY_INPUT(buf, result, max_size) \
{ \
if(scanner_buffer.closed == true) { \
return YY_NULL; \
} \
var App = Ember.Application.create(
customEvents: {
swipeLeft: 'swipeLeft',
swipeRight: 'swipeRight',
swipeLeftTwoFinger: 'swipeLeftTwoFinger',
swipeRightTwoFinger: 'swipeRightTwoFinger',
dragDown: 'dragDown',
dragUp: 'dragUp',
dragDownTwoFinger: 'dragDownTwoFinger',
dragUpTwoFinger: 'dragUpTwoFinger'
site :opscode
cookbook 'apt'
cookbook 'git'
cookbook 'zsh'
cookbook 'ruby_build', git: "git://github.com/fnichol/chef-ruby_build.git", branch: "v0.8.0"
cookbook 'rbenv', git: "git://github.com/fnichol/chef-rbenv.git", branch: "v0.7.2"
cookbook 'dotfiles', git: "git://github.com/alksl/chef_dotfiles.git"
cookbook 'vim'
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.