Skip to content

Show PEG with operators from Wiki article #9

Open
@gitonthescene

Description

@gitonthescene

Hi there! First, thanks for sharing. This looks well written and more or less easy to follow.

One thought I had though is that for readers who might need an overview of what computer languages do, I imagine that the PEG description of the grammar looks pretty magical.

I appreciate that defining PEG or how pest works isn’t your primary focus, but might it be more helpful to present the grammar using the operators from the Wikipedia article you posted and just assert that it translates to the form needed as pest input?

That way readers who follow up with the Wikipedia article can follow along more easily without having to read the pest manual which is likely to get into all sorts of other info.

Just an idea. Thanks again.

Activity

ehsanmok

ehsanmok commented on Jun 17, 2021

@ehsanmok
Owner

Thanks for the suggestions! yes, also I'll go deeper into PEG and pest in the later chapters where I introduce what's necessary to add more language constructs support by going back and forth to grammar <-> ast.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @ehsanmok@gitonthescene

        Issue actions

          Show PEG with operators from Wiki article · Issue #9 · ehsanmok/create-your-own-lang-with-rust