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

Pre parser comments #235

Closed
wants to merge 17 commits into from
Closed

Conversation

bsesso
Copy link
Contributor

@bsesso bsesso commented Jun 8, 2017

We added features for the pre parser added on #231
We added support for one and multiple line comments, such as:

# comments like this

=begin
or this
=end

def a # but not this

It also removes the supported comments from the code passed to the analyse_first_step method

bernardo-amorim and others added 17 commits May 24, 2017 15:01
Signed-off-by: Bruno Sesso <[email protected]>
Signed-off-by: Bernardo Amorim <[email protected]>
Signed-off-by: Bruno Sesso <[email protected]>
Signed-off-by: Bernardo Amorim <[email protected]>
Signed-off-by: Bruno Sesso <[email protected]>
Signed-off-by: Bernardo Amorim <[email protected]>
Signed-off-by: Bruno Sesso <[email protected]>
Signed-off-by: Bernardo Amorim <[email protected]>
Signed-off-by: Bruno Sesso <[email protected]>
Signed-off-by: Bernardo Amorim <[email protected]>
Signed-off-by: Bruno Sesso <[email protected]>
Signed-off-by: Bernardo Amorim <[email protected]>
Signed-off-by: Bruno Sesso <[email protected]>
Signed-off-by: Bernardo Amorim <[email protected]>
Signed-off-by: Lucas Kanashiro <[email protected]>
Signed-off-by: Giuliano Belinassi <[email protected]>
Signed-off-by: Bruno Sesso <[email protected]>
Signed-off-by: Bernardo Amorim <[email protected]>
Signed-off-by: Lucas Kanashiro <[email protected]>
Signed-off-by: Giuliano Belinassi <[email protected]>
Signed-off-by: Bruno Sesso <[email protected]>
Signed-off-by: Bernardo Amorim <[email protected]>
Signed-off-by: Lucas Kanashiro <[email protected]>
Signed-off-by: Giuliano Belinassi <[email protected]>
Signed-off-by: Bruno Sesso <[email protected]>
Signed-off-by: Bernardo Amorim <[email protected]>
Signed-off-by: Lucas Kanashiro <[email protected]>
Signed-off-by: Giuliano Belinassi <[email protected]>
We handle one line comments.

Signed-off-by: Bruno Sesso <[email protected]>
Signed-off-by: Lucas Kanashiro <[email protected]>
…eparser data structure

Because we now take the multi-line comments out of the text that will be
analysed by analyse_first_step some tests crashed and we didn't fix it

Signed-off-by: Bruno Sesso <[email protected]>
Signed-off-by: Giuliano Belinassi <[email protected]>
…comments out of the received code

Multiple line comments are now added to the preparser datastructure. And
because of that it removes the comments passed to the analyse_first_step
method on language.rb. In the future the datastructured will be entirely
passed to the analyse_first_step, but this is not implemented yet.

Signed-off-by: Bruno Sesso <[email protected]>
Signed-off-by: Giuliano Belinassi <[email protected]>
@bsesso bsesso closed this Sep 24, 2019
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.

2 participants