Skip to content

adding epsilon to grammer.txt? #1

Open
@RyanZurrin

Description

How would you represent the following CFG?

S → a T X b
T → X T S | ε
X → a | b

I am confused on how to represent the EPSILON in the grammer.txt file that is read. Everything I have tried as rejected 'abb' which should be a part of the language.

Thanks for any help.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions