tech@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: Kristaps Dzonsons <kristaps@bsd.lv>
To: Ingo Schwarze <schwarze@usta.de>, tech@mdocml.bsd.lv
Subject: Re: mdocml: Unify mdoc and man enums and structs into mandoc.h.
Date: Sun, 03 Oct 2010 18:49:32 +0200	[thread overview]
Message-ID: <4CA8B41C.7020300@bsd.lv> (raw)
In-Reply-To: <20101002175621.GB19515@iris.usta.de>

>> Log Message:
>> -----------
>> Unify mdoc and man enums and structs into mandoc.h.
>> This is part of the slow process of logically splitting
>> formatting frontend and parser backend without pollution.
> 
> Hmm, i fear i don't understand this.
> Given the relation "depends on" shown as "<-",
> i would expect the following dependencies:
> 
>   frontends (html.h, term.h)    <- general & output utils
>   backends (*man.h, *mdoc.h)    <- general utils
>   preprocessor (roff.h)         <- general utils
>   output utils (chars.h, out.h) <- none
>   general utils (*mandoc.h)     <- none
> 
> But i don't understand why two different frontends or two
> different backends should depend on each other, or why including
> one might make it necessary to include the other.
> 
> Sorry, i'm lacking the tiome right now to look deeper into this...

Ingo, cross-posting to tech@....

I want to make a simple mandoc.h and libmandoc.a that has all the 
ingredients for writing front-ends, such as a fancier makewhatis and 
apropos, or man.cgi or whatnot.

To begin with: roff.h, mdoc.h, and man.h -> mandoc.h; libmdoc.a, 
libroff.a, and libman.a (and associated stuff) being merged into a 
single libmandoc.a.  Then libmdoc.h, libman.h, and libroff.h being 
merged into libmandoc.h, used internally within libmandoc.a.

This will reduce structural complexity that's been bothering me for a while.

Once this is done, I will abstract and push the fdesc() function into 
the library: it implements parts of the grammar (such as escaped 
newlines) that should be internal to the library.

Another push is to get the escape routines in one place; right now, the 
functionality is duplicated.  Restructuring is a necessary precondition 
before I do so.

Thoughts?

Kristaps
--
 To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv

       reply	other threads:[~2010-10-03 16:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <201010021014.o92AEcOr023027@krisdoz.my.domain>
     [not found] ` <20101002175621.GB19515@iris.usta.de>
2010-10-03 16:49   ` Kristaps Dzonsons [this message]
2010-10-03 22:36     ` Ingo Schwarze
2010-10-04  6:35       ` Kristaps Dzonsons
2010-10-04 20:05         ` Ingo Schwarze

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4CA8B41C.7020300@bsd.lv \
    --to=kristaps@bsd.lv \
    --cc=schwarze@usta.de \
    --cc=tech@mdocml.bsd.lv \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).