Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Treat all files as composites to simplify grammar #10

Open
raquelalegre opened this issue Jan 21, 2015 · 0 comments
Open

Treat all files as composites to simplify grammar #10

raquelalegre opened this issue Jan 21, 2015 · 0 comments

Comments

@raquelalegre
Copy link
Contributor

At the moment, composites are only discovered when a new &-line is found in a text. At this point, the Text object created so far, has to be adapted to be a composite, and that's a little messy.
This could be improved if we consider all files as composites. Non-composite files would be composites with only one text element.

Right now, the entry point of the grammar is:

        document : text
                    | object
                    | composite

It should be changed to:

        document : composite
        composite : text 
                    | object
         text: AMPERSAND ......... 

This is not a trivial change and requires close attention and significant development time. It is not high priority, though.

@raquelalegre raquelalegre self-assigned this Jan 21, 2015
@raquelalegre raquelalegre removed their assignment Mar 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant