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

New lexer: Lutin #1307

Merged
merged 30 commits into from Sep 3, 2019
Merged

New lexer: Lutin #1307

merged 30 commits into from Sep 3, 2019

Conversation

jahierwan
Copy link
Contributor

@pyrmont pyrmont added the needs-review The PR needs to be reviewed label Aug 19, 2019
@pyrmont
Copy link
Contributor

pyrmont commented Aug 19, 2019

@jahierwan This still has the Lustre lexer files.

@jahierwan jahierwan mentioned this pull request Aug 19, 2019
@pyrmont pyrmont added author-action The PR has been reviewed but action by the author is needed and removed needs-review The PR needs to be reviewed labels Aug 19, 2019
@jahierwan
Copy link
Contributor Author

@jahierwan This still has the Lustre lexer files.

oh, yes, I've forked my master copy which is under review, sorry.
Is it ok if I wait #905 PR to be accepted and merged, so that I can merge this branch against master
before pushing this branch? Or do you want me start from a fresh branch?

@pyrmont
Copy link
Contributor

pyrmont commented Aug 20, 2019

You won't need to merge it back into your master. Once it's accepted, it'll be squashed and merged into the official master. You'll just merge the official master into your master to bring yourself up to date.

@pyrmont pyrmont added needs-review The PR needs to be reviewed and removed author-action The PR has been reviewed but action by the author is needed labels Aug 21, 2019
@jahierwan
Copy link
Contributor Author

ok, thanks.

@pyrmont pyrmont self-assigned this Aug 25, 2019
@pyrmont
Copy link
Contributor

pyrmont commented Aug 26, 2019

@jahierwan I'm sorry—my git foo wasn't strong enough to work out how to unpick this branch so I basically nuked it and started over. There's now just the current commit with the files as they were after your most recent commit. I'll have a look and get back to you with any comments ASAP.

Copy link
Contributor

@pyrmont pyrmont left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Lutin lexer seems (at least superficially) almost identical to the Lustre lexer. You can use a lexer as the parent of another lexer and then simplify modify the parts that have changed (see the C++ lexer for an example).

Are these languages related enough that changes to one will require changes to the other? Is one a superset of the other for example?

lib/rouge/lexers/lutin.rb Show resolved Hide resolved
lib/rouge/lexers/lutin.rb Outdated Show resolved Hide resolved
lib/rouge/lexers/lutin.rb Outdated Show resolved Hide resolved
@pyrmont pyrmont added author-action The PR has been reviewed but action by the author is needed and removed needs-review The PR needs to be reviewed labels Sep 1, 2019
@jahierwan
Copy link
Contributor Author

jahierwan commented Sep 3, 2019

The Lutin lexer seems (at least superficially) almost identical to the Lustre lexer. You can use a lexer as the parent of another lexer and then simplify modify the parts that have changed (see the C++ lexer for an example).

Are these languages related enough that changes to one will require changes to the other? Is one a superset of the other for example?

Clearly the syntax of Lutin tried to mimick as much as possible to the one of Lustre. Nevertheless, they are independent languages and modifying one does not imply some modification to the other.

But I agree it would make sense to factorize the code.

@pyrmont pyrmont merged commit fd82b9c into rouge-ruby:master Sep 3, 2019
@pyrmont
Copy link
Contributor

pyrmont commented Sep 3, 2019

@jahierwan Thanks for working through this one. I thought it would be good to have the Lustre and Lutin lexers ready for the same release (I'm about to push that out now). Hope you find it useful!

@pyrmont pyrmont removed the author-action The PR has been reviewed but action by the author is needed label Sep 3, 2019
@jahierwan
Copy link
Contributor Author

jahierwan commented Sep 3, 2019 via email

@jahierwan jahierwan deleted the add-lutin branch September 4, 2019 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants