-
Notifications
You must be signed in to change notification settings - Fork 37
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
Use ragel to generate machine code #77
Conversation
Signed-off-by: John Nunley <[email protected]>
Nice! Can you run rustfmt on those files (not the whole rustybuzz). |
As for failing tests, which ragel files did you used? The current master one or 2.7.1 one? |
I guess you did used the master one, because the 2.7.1 universal is slightly different. |
Signed-off-by: John Nunley <[email protected]>
Signed-off-by: John Nunley <[email protected]>
I've synced with 2.7.1, although tests are still failing, specifically for the Indic tests. |
Hmm... no idea what could be wrong. Could be a By the way, what ragel flags have you used? harfbuzz uses I guess the only option is to try to use master ragel on harfbuzz 2.7.1 to make sure it doesn't break harfbuzz tests as well. |
Signed-off-by: John Nunley <[email protected]>
I finally figured out how to build At this point the only theories I have is that |
meson builddir
ninja -Cbuilddir Don't remember how to run tests.
Did the output changed or is the same? Does tables have the same values in C and Rust output? It can easily be a ragel bug. Rust support is alpha, afaik. |
|
Signed-off-by: John Nunley <[email protected]>
Strangely, it looks like all of the issues come from |
@notgull There was a simple typo in macro_rules! found_syllable {
($kind:expr) => {{
- found_syllable(ts, ts, &mut syllable_serial, $kind, buffer)
+ found_syllable(ts, te, &mut syllable_serial, $kind, buffer)
}}
} The tests pass with this. |
Signed-off-by: John Nunley <[email protected]>
@Bobo1239 great catch! |
@notgull Thanks! Since it fixes the out-of-bounds bug I will make a release soon. I also want to write a simple readme of how to use ragel. What exact ragel command did you used to generate Rust files? |
I managed to get the latest master for
ragel
up and running and got it to generate code... although it looks like tests are failing? Not sure why that's happening.