Skip to content

liuluheng/codereading

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

codereading

This repository is some open source code I'm reading in my spare time, and I have added some test codes to learn the structures of these projects.

cmus is a music player written in C. I'm interested about how the music wave came out, so I got this read. cmus 's code is really good-writting, and it uses Linux kernel coding style, I think it could be the model of how C code should be written.

  • scmus
    learn-cmus/scmus is a small music player I extract from cmus. It's all about how music came out. It was implemented as playing only one song over and over. If you curious about how music is played, you can have a look.:smile:

lemon

lemon is a LALR(1) grammar parser generator, only about 5000 lines code, and it has been applied to the real production. I think it's worth reading for who want to know LALR(1). Athough its code style is not so tasty, actually it's not that hard..:smile:

leveldb

leveldb is recommended to read by many people since the authors' reputation and its good google coding style, my reading tracks is in leveldb/learn. Actually I have spent more than two months on reading the source code trying to understand how it works.