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

What scanner/parser is herd7 using to identify .cat? #539

Open
Misasasa opened this issue Mar 3, 2023 · 1 comment
Open

What scanner/parser is herd7 using to identify .cat? #539

Misasasa opened this issue Mar 3, 2023 · 1 comment

Comments

@Misasasa
Copy link

Misasasa commented Mar 3, 2023

Hi,
I am working on another tool about various memory models, but it is difficult to find a scanner/parser for .cat language. I wonder how herd7 identifies .cat. Thanks.

@maranget
Copy link
Member

maranget commented Mar 6, 2023

Hi @Misasasa, we are using ocamllex for lexer and menhir for parsing. The lexer is defined by file modelLexer.mll, the parser is defined by file modelParser.mly. The lexer and parser are combined by the function parse in file parseModel.ml --- or more exactly by function do_parse.

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