- https://github.com/keean/Parser-Combinators (C++)
- https://github.com/ColinH/PEGTL (PEG, C++)
- https://github.com/wbhart/Cesium3/tree/combinators (C)
- http://theorangeduck.com/page/you-could-have-invented-parser-combinators (JS)
- http://blog.mattbierner.com/stupid-template-tricks-pride-and-parser-combinators-part-one/ (C++)
- http://www.boost.org/doc/libs/1_63_0/libs/spirit/doc/html/index.html (C++)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdio> | |
#include <functional> | |
#include <unordered_map> | |
#include <vector> | |
// Notes | |
// [some brainfuck fluff by daniel b cristofani](http://www.hevanet.com/cristofd/brainfuck/) | |
// [The Epistle to the Implementors](http://www.hevanet.com/cristofd/brainfuck/epistle.html) | |
// [The BrainFuck Compiler Collection](https://github.com/Sirflankalot/bfcc) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <chrono> | |
#include <iomanip> | |
#include <iostream> | |
int main() { | |
auto now = std::chrono::high_resolution_clock::now(); | |
auto time = std::chrono::system_clock::to_time_t(now); | |
auto tm = *std::gmtime(&time); | |
// auto tm = *std::localtime(&time); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
ls = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short | |
ll = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat --date=short | |
graph = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit | |
new = !sh -c 'git log $1@{1}..$1@{0} "$@"' | |
st = status -s | |
diff = diff --patience | |
[user] | |
email = [email] | |
name = dtoma |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
style: | |
@for src in $(SOURCES) ; do \ | |
echo "Formatting $$src..." ; \ | |
clang-format -i "$(SRC_DIR)/$$src" ; \ | |
clang-tidy -checks='-*,readability-identifier-naming' \ | |
-config="{CheckOptions: [ \ | |
{ key: readability-identifier-naming.NamespaceCase, value: lower_case },\ | |
{ key: readability-identifier-naming.ClassCase, value: CamelCase },\ | |
{ key: readability-identifier-naming.StructCase, value: CamelCase },\ | |
{ key: readability-identifier-naming.FunctionCase, value: camelBack },\ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://ldionne.com/hana-cppnow-2015/ | |
// http://boostorg.github.io/hana/ | |
// note: re-read the CppCon pres on fusion for parsing | |
// somehow hold the tag and value type in the field's type? | |
template <int Tag, typename T> | |
struct Field { T value; } | |
template <int Tag, typename T> | |
constexpr auto get_tag(field<Tag, T>&&) { return Tag; } |
- AsiaBSDCon Mar. 09-12, Tokyo, Japan
- Computer Graphics International Jun. 27-30, Yokohama, Japan
- 1st Asia-Pacific Workshop on Networking Aug. 3-4, Hong Kong
- SIGGRAPH Asia Nov. 27-30, Bangkok, Thailand
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Character | Meaning | |
* c | Matches any literal character c | |
* . | Matches any single character | |
* ^ | Matches the beginning of the input string | |
* $ | Matches the end of the input string | |
* * | Matches zero or more occurrences of the previous character | |
*/ | |
#include <cstdio> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://jakascorner.com/blog/2016/05/omp-monte-carlo-pi.html | |
#include <iostream> | |
#include <chrono> | |
#include <random> | |
#include <vector> | |
#include <string> | |
#include <iomanip> | |
#include <limits> | |
#include <chrono> |