Skip to content

Prolog source layout #186

Closed
Closed
@JanWielemaker

Description

@JanWielemaker

According to https://arxiv.org/pdf/0911.2899.pdf, the preferred layout for Prolog is to indent clause bodies with 4 and use spaces. I'm in favour of changing to this indentation and update the default settings for PceEmacs accordingly.

To facilitate this I wrote a Prolog program to convert the current layout reliably. I exploits the library prolog_colour to created a detailed annotated parse tree. How to make this available?

Possibly additional transformations:

  • Move the cut (!) to its own line?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions