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

Can you create a compatible flex .y file? #4

Closed
tu6ge opened this issue Feb 27, 2022 · 1 comment
Closed

Can you create a compatible flex .y file? #4

tu6ge opened this issue Feb 27, 2022 · 1 comment

Comments

@tu6ge
Copy link

tu6ge commented Feb 27, 2022

Hi , I am learning flex and bison , and I is learned rust language. and I like rust become it is safte language. I look at src/test/calc.y file many times, it has some rust sentence, so I uncertain it can work with flex. Can you give me some help ?

@iliabylich
Copy link
Owner

There's nothing specific to Rust or Yacc/Bison in calc.y, so better read guides/docs about them. I'm not the best candidate to teach you how it works.

I have 0 experience with Flex but from what I know it emits tokens in some predefined format, and so your Parser::yylex method can modify them as needed.

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

No branches or pull requests

2 participants