StarCTF Reverse writeUp *CTF Reverse writeUp由于水平问题,这次只做出来三道 RE 题,分别是 ChineseGame、stream、wherekey,其它 RE 题目等我复现官方 WP 后再来写。 题目下载 files.zip ChineseGame题目名提示中国游戏,但是我做完这题之后也不知道到底是什么中国游戏23333。 这道题目的 binary 静态链接的 libc 库,没有符号,所以要手动的 2021-01-18 CTF wp
LR Parse LR Parse个人学习理解,可能有许多理解或者表达上的错误,若有发现错误,欢迎帮我纠正~ L: left to right parsingR: rightmost derivation LR 分析器结构 Table-based Actions Shift (移进) Reduce (归约) Data Structures Stack of states/symbols {s} Action 2021-01-11 compiler note
Context-Free Grammars Context-Free GrammarsBrief Introduction正则文法 VS 上下文无关文法正则文法不能表示程序语言的递归结构,递归结构在程序语言中非常常见,比如 if 中可以嵌套 if、括号中可以嵌套括号、表达式中可以嵌套表达式。 正则文法无法识别 ((())) 这种具有递归形式的结构,因为正则文法不具备动态记忆功能,即没有一个正则表达式能识别 n 个 ( ,后再识别 n 个 ) 2021-01-03 compiler note
Yacc practice Yacc practiceYacc (Yet Another Compiler Compiler) 是一个用于生成语法分析器C代码的程序,一般配合 lex 使用。 bison 是 GNU 版本的 yacc 实现。 识别嵌套括号lex 代码: parens.lex 1234%%[ \t]+ { }. return yytext[0];%% yacc 代码: parens.y 2021-01-02 compiler homework
Lexical Analysis Lexical Analysis序我最近在学习 SFU 的 Compiler 课程。由于疫情缘故, SFU 的 Compiler 课程在线上进行,才让我有机会白嫖到这门课程。 这门课程理论与实践结合,课程作业提供了详细的文档、测试程序以及 testcase。 课程主页地址http://anoopsarkar.github.io/compilers-class/syllabus.html Lexic 2020-12-31 compiler note
Hello World Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. Quick 2020-12-30