Skip to content

Add parsing of nested bracket structures as objects #317

Description

@ERnsTL
  • TODO ho to tackle this?
  • parsing into skyscraper "HTML" document or XpathItemTree? Then applying its existing XPath query engine?

twig for tree-pattern matching

Re: [9front] question about how twig was handled in Plan 9
Foto des Kontakts
Von Dave Woodman am 2024-04-06 22:01
Details
If of interest, the Twig Reference Manual can be found here: https://www.telecomarchive.com/docs/bsp-archive/Letters%20and%20Memos/CSTR/CSTR%20120.pdf

Quite a few of the Technical Reports can also be found there (https://www.telecomarchive.com/docs/bsp-archive/Letters%20and%20Memos/CSTR/) - an interesting browse

On 04/04/2024 21:56, ori@eigenstate.org wrote:

Quoth Mon Aaraj <[mon.aaraj815@gmail.com](mailto:mon.aaraj815@gmail.com)>:

    This is a blind shot because I couldn't find other resources nor the
    code for the ``twig`` utility that was shipped with Plan 9 1st Ed. It
    would be preferable to find the source code.

    The part where identifying matches is apparently easy, but how do they
    then process it as though it conforms to a grammar?

https://github.com/Plan9-Archive/plan9-1e/tree/master/sys/src/cmd/twig

also described in detail here:

https://dl.acm.org/doi/pdf/10.1145/69558.75700

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions