C++ - Copy-and-swap Idiom
I faced an issue implementing BusTub P1 correctly. It’s all about move semantic and resource ownership. I found the “copy-and-swap idiom” very helpful in solving this problem. Here’s a brief explan...
I faced an issue implementing BusTub P1 correctly. It’s all about move semantic and resource ownership. I found the “copy-and-swap idiom” very helpful in solving this problem. Here’s a brief explan...
LL grammar is a kind of top down grammar (自顶向下文法). 自顶向下 的两个动作:匹配,推导(展开)。 从开始符出发,推导出给定的串。 LL grammar Definition: see https://en.wikipedia.org/wiki/LL_grammar. 对于 \(\text{LL}(k)...
It’s a platform-independent language that abstracts above object code. Intermediate code 栈式中间代码-后缀式 四元式 (op, arg1, arg2, result) [!INFO] 如果你是江西师大的学生,那还需要知道以下注意事项: 输入输出的写法: ...
FUCK ZFY ZZS 流程 建立概念模型 ER图转化为关系模型 若ER图过大,则需先画分ER图再合并。 建立概念模型:画ER图 方框表示实体 菱形表示联系 椭圆表示属性 ER图转化为关系模型 模型转化: 实体 -> 表 联系 -> 关系 做一下书上 P239 F7,8,9 标出表名,属性,主码(下划线) 形式:...
Recently, I ran into an issue with the NVIDIA driver after an unexpected Windows update. The update reordered the BIOS boot entries, and when I subsequently booted into Fedora 43, the NVIDIA kernel...
程程编里不是这样的!😡应该多让我看看libarchive源码☝,然后提升我的好感度。偶尔让我发现一些灵感,然后在那个特殊函数时跟我有特殊返回值☺️。最后在某个我trace了很久才找到的语句,让我发现错误😮,我终于找到问题根源☺️,然后我成功提交PR啊😃。一怎么上来给我跳转到libiconv!😡?程程编里根本不是这样!😡我不接受!!😡😡😡 If you found you can’t use...
At least the following three tables are involved in semantic analysis: Symbol table stores information about identifiers seen by semantic parser. Type table Constants table Internal repres...
Terminology Triplet Triplet describes the platform. It consists of three components: ISA-OS-libc. ISA (Instruction Set Architecture) OS (Operating System) libc: the version of libc used o...
Conan is one of the most popular cross-platform package managers in cpp world. But it’s also HARD to use since it have a really bad documentation. In this article, I’ll give some notes on how to u...
$\text{LR}(k)$ parsing is a bottom-up grammar parsing method, for which: $\text{LR}$ stands for “Read from Left to Right, Derive Rightmost Word”. $k$ stands for the number of character to look...