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

Integrate with lrama #7798

Merged
merged 18 commits into from
May 12, 2023
Merged

Integrate with lrama #7798

merged 18 commits into from
May 12, 2023

Conversation

yui-knk
Copy link
Contributor

@yui-knk yui-knk commented May 11, 2023

@matzbot matzbot requested a review from a team May 11, 2023 05:36
tool/lrama/lib/lib/lrama/output.rb Fixed Show fixed Hide fixed

ary.each do |s|
s = s.gsub('\\', '\\\\\\\\')
s = s.gsub('"', '\\"')

Check failure

Code scanning / CodeQL

Incomplete string escaping or encoding

This does not escape backslash characters in the input.
@nobu
Copy link
Member

nobu commented May 11, 2023

Why exe/exe lib/lib and exe lib under tool/lrama?

@nobu
Copy link
Member

nobu commented May 11, 2023

Seems only lrama/version.rb differs.

@XrXr XrXr removed the request for review from a team May 12, 2023 01:40
@yui-knk yui-knk force-pushed the integrate_with_lrama branch 3 times, most recently from ce0f873 to dadfa7a Compare May 12, 2023 04:54
@@ -29,7 29,7 @@ CPP = @CPP@
LD = @LD@
RUSTC = @RUSTC@
CARGO = @CARGO@
YACC = bison
YACC = $(tooldir)/lrama/exe/lrama
Copy link
Member

Choose a reason for hiding this comment

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

/usr/bin/env shebang trick is not portable.

Suggested change
YACC = $(tooldir)/lrama/exe/lrama
YACC = $(BASERUBY) $(tooldir)/lrama/exe/lrama

@@ -1,6 1,7 @@
GEN = $(srcdir)/tools/generate.rb
SRC1 = $(top_srcdir)/parse.y
SRC2 = $(srcdir)/eventids2.c
BISON = "$(RUBY) $(GEN) $(top_srcdir)/tool/lrama/exe/lrama"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
BISON = "$(RUBY) $(GEN) $(top_srcdir)/tool/lrama/exe/lrama"
BISON = $(RUBY) $(GEN) $(top_srcdir)/tool/lrama/exe/lrama

win32/Makefile.sub Outdated Show resolved Hide resolved
@yui-knk yui-knk merged commit a1b01e7 into ruby:master May 12, 2023
@yui-knk yui-knk deleted the integrate_with_lrama branch May 12, 2023 09:25
yui-knk added a commit to yui-knk/lrama that referenced this pull request May 17, 2023
After ruby/ruby#7798, ruby uses lrama
as default then no need to pass YACC anymore.
hachi8833 added a commit to hachi8833/ruby_docker_library that referenced this pull request Feb 6, 2024
tianon pushed a commit to hachi8833/ruby_docker_library that referenced this pull request Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants