Chapter 10: Linking

This is the final chapter of Part 1 of Writing a C Compiler . Something about static variables? Lexer The Book spends 15 pages talking about linkage and static variables and tentative declarations, etc, before it gets to the lexer. Only two new keywords are needed: static and extern . This is the current keyword static map: pub const keywords = std.StaticStringMap(Tag).initComptime(.{ .{ "int" ,…