Ken Thompson’s post2nfa
Algorithm
书接上回 Ken Thompson’s re2post Algorithm.
post2nfa
Algorithm
书接上回 Ken Thompson’s re2post Algorithm.
1. shunting yard 是啥?
本文是 Parsing Expression Grammars: A Recognition-Based Syntactic Foundation by Bryan Ford@MIT 的读文笔记。这篇论文佶屈聱牙,我这里用人话总结一下。
LLVM 的轻量级 RTTI 经常有这样的代码:
前言 1:Memory Models 让人头秃
1. Zsh setup: XDG + Prezto
LLVM 禁止使用 C++ native RTTI,主要是嫌弃 native RTTI 的 performance,并不是说 LLVM 不需要 RTTI 这个 feature。我们可以说 LLVM 自己实现了一套新的 RTTI (以下称 LLVM-style RTTI),它有:
Q1: What is polymorphism, again?