diff2html
md2html.awk | diff2html | |
---|---|---|
1 | 3 | |
8 | 2 | |
- | - | |
0.0 | 0.0 | |
over 2 years ago | almost 3 years ago | |
Awk | Shell | |
- | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
md2html.awk
-
The Awk State Machine Parser Pattern (2018)
I used a similar technique for my awk markdown parser: https://github.com/yiyus/md2html.awk
An awk state machine is a quite straightforward way to deal with data like this log file. It is not so clear that this is the best way to write a relatively large piece of software, like a markdown parser (when I wrote md2html.awk in 2009, the standard md parser was the original one by John Gruber, written in Perl, so it actually was an improvement in code clarity, performance, and portability (we had no perl in Plan 9!), but nowadays it is easy to find much better solutions).
diff2html
-
Scripts should be written using the project main language
The performance concerns might creep up for scripts and tricky to figure out the issue if you are not internal abstractions.
Example, https://github.com/berry-thawson/diff2html
-
Learn GNU Awk with hundreds of examples and exercises
confession: plug
I once wrote a diff2html script ported from bash and it was much, much faster (for obvious reasons). And awk makes it much more readable than bash script. And I could learn the language, debug, understand bugs and fix them in a night.
https://github.com/berry-thawson/diff2html/blob/master/diff2...
-
The Awk State Machine Parser Pattern (2018)
https://github.com/berry-thawson/diff2html
This is first attempt in writing awk script. Would like to know how readable it is.