Skip to content

Implement Haskell tree sitter parser#1

Open
symbioticsec-root wants to merge 3 commits into
opengrep:opengrep/mainfrom
SymbioticSec:dev
Open

Implement Haskell tree sitter parser#1
symbioticsec-root wants to merge 3 commits into
opengrep:opengrep/mainfrom
SymbioticSec:dev

Conversation

@symbioticsec-root
Copy link
Copy Markdown

No description provided.

Extracted from opengrep-internal languages/haskell/tree-sitter/semgrep-haskell/lib
to match the external repo pattern used by other languages (e.g. semgrep-cpp).
Comment thread lib/Parse.ml Outdated
Comment on lines +23 to +29
let ts_parser = create_parser ()

let parse_source_string ?src_file contents =
Tree_sitter_parsing.parse_source_string ?src_file ts_parser contents

let parse_source_file src_file =
Tree_sitter_parsing.parse_source_file ts_parser src_file
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

We need to regenerate this so it used DLS.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@symbioticsec-root I understand that the parser is generated with ocaml-tree-sitter-semgrep. Can you add the fyi directory to this PR? (We keep the grammars as documentation in all the other language repos)

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.

3 participants