Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

Conversion to proper CFG #3

Closed
4 tasks done
meyer1994 opened this issue Jun 15, 2018 · 0 comments
Closed
4 tasks done

Conversion to proper CFG #3

meyer1994 opened this issue Jun 15, 2018 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@meyer1994
Copy link
Owner

meyer1994 commented Jun 15, 2018

A proper CFG has the following properties:

  • No unreachable symbols

  • No unproductive symbols

  • No epslon productions

  • No cyles

To get a proper grammar we must implement the following methods:

  • Remove unproductive symbols

  • Remove unreachable

  • Remove epslon productions

  • Remove cycles (simple productions)

We need to apply the above methods in the following order:

  1. Remove epslon productions

  2. Remove useless symbols

    1. Remove unproductive
    2. Remove unreachable
  3. Remove simple productions

@meyer1994 meyer1994 added the enhancement New feature or request label Jun 15, 2018
@meyer1994 meyer1994 self-assigned this Jun 17, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant