上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 17 下一页

2025年1月5日

5.8 Error recovery 错误恢复

摘要: By default, the parser will stop as soon as it encounters an error. Sometimes though we would like to try and recover and keep going. LALRPOP can supp 阅读全文

posted @ 2025-01-05 13:53 及途又八 阅读(38) 评论(0) 推荐(0)

5.6 Macros

摘要: Frequently when writing grammars we encounter repetitive constructs that we would like to copy-and-paste. A common example is defining something like 阅读全文

posted @ 2025-01-05 12:06 及途又八 阅读(21) 评论(0) 推荐(0)

5.5 Building ASTs

摘要: Of course, most of the time, when you're parsing you don't want to compute a value, you want to build up some kind of data structure. Here's a quick e 阅读全文

posted @ 2025-01-05 11:31 及途又八 阅读(18) 评论(0) 推荐(0)

5.4 Handling full expressions

摘要: Now we are ready to extend our calculator to cover the full range of arithmetic expressions (well, at least the ones you learned in elementary school) 阅读全文

posted @ 2025-01-05 11:04 及途又八 阅读(31) 评论(0) 推荐(0)

5.3 Type inference 类型推断

摘要: https://lalrpop.github.io/lalrpop/tutorial/003_type_inference.html OK, now that we understand the calculator1 example, let's look at some of the short 阅读全文

posted @ 2025-01-05 10:36 及途又八 阅读(15) 评论(0) 推荐(0)

2024年12月29日

Rust中以下三个东西是什么?有什么用? #[automatically_derived] #[allow(clippy::ptr_arg)] #[rustfmt::skip]

摘要: Rust中以下三个东西是什么?有什么用? #[automatically_derived] #[allow(clippy::ptr_arg)] #[rustfmt::skip] gpttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt 阅读全文

posted @ 2024-12-29 19:52 及途又八 阅读(70) 评论(0) 推荐(0)

5. LALRPOP Tutorial LALRPOP 教程

摘要: https://lalrpop.github.io/lalrpop/tutorial/index.html This is a tutorial for how to write a complete parser for a simple calculator using LALRPOP. If 阅读全文

posted @ 2024-12-29 19:10 及途又八 阅读(93) 评论(0) 推荐(0)

4. Cheatsheet 备忘单

摘要: https://lalrpop.github.io/lalrpop/cheatsheet.html Users of Lalrpop have compiled the following cheatsheet table as a quick way to look up useful Lalrp 阅读全文

posted @ 2024-12-29 18:57 及途又八 阅读(11) 评论(0) 推荐(0)

3. Quick Start Guide 快速入门指南

摘要: For getting started with LALRPOP, it's probably best if you read the tutorial, which will introduce you to the syntax of LALRPOP files and so forth. G 阅读全文

posted @ 2024-12-29 18:41 及途又八 阅读(102) 评论(0) 推荐(0)

2. Crash course on parsers 语法分析器速成课程

摘要: If you've never worked with a parser generator before, or aren't really familiar with context-free grammars, this section is just a very brief introdu 阅读全文

posted @ 2024-12-29 18:17 及途又八 阅读(50) 评论(0) 推荐(0)

上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 17 下一页

导航