7 votes

Show: UNK, a sub-1000-byte ssg with included markup parser and template

4 comments

  1. acdw
    Link
    (If ~comp is the wrong place for this, please move it, or delete it if need be!) I've finished writing UNK, a tiny SSG in POSIX shell and awk. I decided to try it after thinking about fitting an...

    (If ~comp is the wrong place for this, please move it, or delete it if need be!)

    I've finished writing UNK, a tiny SSG in POSIX shell and awk. I decided to try it after thinking about fitting an ssg in a toot (500 bytes), and then fitting a Markdown parser in one too (which is definitely not possible, by the way). Then I glued them together with a heredoc template and published it.

    Comments/suggestions welcome!

    2 votes
  2. [3]
    unknown user
    Link
    Great work! Those scripts are black magic to me, I wouldn't even begin to try to read them. In the past I used this mess for my blog, which is not really similar, but it uses awk, make, m4 & a...

    Great work! Those scripts are black magic to me, I wouldn't even begin to try to read them.

    In the past I used this mess for my blog, which is not really similar, but it uses awk, make, m4 & a custom m4 markup to generate a blog. It even has automatically-numbered footnotes in pure m4, tho IDK if I stole it from somewhere. I don't think anybody would want to use this, but I was reminded of it when I saw this.

    2 votes
    1. [2]
      acdw
      Link Parent
      Hey I've never heard of m4, but I like what I can parse of your blog software! An SSG is a fun project to write, because it's just a mapping of inputs to outputs, which is basically a function. As...

      Hey I've never heard of m4, but I like what I can parse of your blog software! An SSG is a fun project to write, because it's just a mapping of inputs to outputs, which is basically a function.

      As far as the black magic-ness of the scripts, you're right! I think I'll write a line-by-line breakdown too, as a learning/teaching exercise.

      Thanks for checking it out!

      1 vote
      1. unknown user
        Link Parent
        Looking forward to it!

        As far as the black magic-ness of the scripts, you're right! I think I'll write a line-by-line breakdown too, as a learning/teaching exercise.

        Looking forward to it!

        2 votes