Skip to content

Instantly share code, notes, and snippets.

View McMartin's full-sized avatar

Alain Martin McMartin

View GitHub Profile
@McMartin
McMartin / tokenize.cmake
Last active May 15, 2018 21:26
A CMake tokenizer written in CMake
cmake_policy(VERSION ${CMAKE_VERSION})
function(tokenize filename out_namespace)
set(tokens_count 0)
set(line 1)
set(column 1)
macro(emit_token_and_advance type)
@McMartin
McMartin / lexer.cmake
Last active May 15, 2018 21:26
A CMake lexer written in CMake
cmake_policy(VERSION ${CMAKE_VERSION})
function(lexer filename out_namespace)
set(tokens_count 0)
set(line 1)
set(column 1)
macro(fill_buffer_from_file_content)
@McMartin
McMartin / .travis.yml
Created February 10, 2019 22:10
xcrun on Travis CI
language: cpp
install:
- which xcrun
script:
- xcrun --help
- xcrun --show-sdk-path || true
- xcrun --show-sdk-version || true