[GHC] #9294: More exports and documentation for GHC API Parser Module

#9294: More exports and documentation for GHC API Parser Module ------------------------------------+------------------------------------- Reporter: agibiansky | Owner: agibiansky Type: feature request | Status: new Priority: normal | Milestone: Component: GHC API | Version: 7.8.2 Keywords: | Operating System: Unknown/Multiple Architecture: Unknown/Multiple | Type of failure: None/Unknown Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | ------------------------------------+------------------------------------- I would like to be able to use the GHC API for parsing. Right now this is in the Parser and Lexer modules: Parser: http://www.haskell.org/ghc/docs/7.8.2/html/libraries/ghc-7.8.2/Parser.html Lexer: http://www.haskell.org/ghc/docs/7.8.2/html/libraries/ghc-7.8.2/Lexer.html GHC currently exposes only a few parsers here. I'd like to make a few modifications: 1. Expose a few more parsers than currently are exposed in the Parser module. In particular, I'd like import statements, type signatures, declarations, and expressions, at least, in addition to what's already there. 2. Add some Haddock documentation to the top of the Parser module describing how to use it, since the types themselves are pretty opaque here. 3. Export a clean and self-contained parsing API from the GHC module. See minor discussion here: http://comments.gmane.org/gmane.comp.lang.haskell.ghc.devel/4791 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9294 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9294: More exports and documentation for GHC API Parser Module -------------------------------------+------------------------------------- Reporter: agibiansky | Owner: agibiansky Type: feature | Status: new request | Milestone: Priority: normal | Version: 7.8.2 Component: GHC API | Keywords: Resolution: | Operating System: Unknown/Multiple Differential Revisions: | Type of failure: None/Unknown Architecture: | Test Case: Unknown/Multiple | Blocking: Difficulty: Unknown | Blocked By: | Related Tickets: | -------------------------------------+------------------------------------- Comment (by simonpj): That all sounds good to me. Please go ahead and send us a patch. Simon Marlow is best acquainted with the parser and lexer, so it'd be worth checking significant changes with him. Simon -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9294#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9294: More exports and documentation for GHC API Parser Module -------------------------------------+------------------------------------- Reporter: agibiansky | Owner: agibiansky Type: feature | Status: new request | Milestone: Priority: normal | Version: 7.8.2 Component: GHC API | Keywords: Resolution: | Operating System: Unknown/Multiple Differential Revisions: | Type of failure: None/Unknown Architecture: | Test Case: Unknown/Multiple | Blocking: Difficulty: Unknown | Blocked By: | Related Tickets: | -------------------------------------+------------------------------------- Comment (by agibiansky): The changes are not at all significant, FYI. It's implemented and I sent a patch (https://phabricator.haskell.org/D71). This covers the first two points, and given the documentation I added, I think the third is not necessary, as it should be fairly straightforward to use the Parser module. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9294#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9294: More exports and documentation for GHC API Parser Module -------------------------------------+------------------------------------- Reporter: agibiansky | Owner: agibiansky Type: feature | Status: patch request | Milestone: Priority: normal | Version: 7.8.2 Component: GHC API | Keywords: Resolution: | Operating System: Unknown/Multiple Differential Revisions: Phab:D71 | Type of failure: None/Unknown Architecture: | Test Case: Unknown/Multiple | Blocking: Difficulty: Unknown | Blocked By: | Related Tickets: | -------------------------------------+------------------------------------- Changes (by simonpj): * status: new => patch * differential: => Phab:D71 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9294#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9294: More exports and documentation for GHC API Parser Module -------------------------------------+------------------------------------- Reporter: agibiansky | Owner: agibiansky Type: feature | Status: closed request | Milestone: Priority: normal | Version: 7.8.2 Component: GHC API | Keywords: Resolution: fixed | Architecture: Unknown/Multiple Operating System: | Difficulty: Unknown Unknown/Multiple | Blocked By: Type of failure: | Related Tickets: None/Unknown | Test Case: | Blocking: | Differential Revisions: Phab:D71 | -------------------------------------+------------------------------------- Changes (by thoughtpolice): * status: patch => closed * resolution: => fixed Comment: This was merged - thanks! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9294#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9294: More exports and documentation for GHC API Parser Module -------------------------------------+------------------------------------- Reporter: agibiansky | Owner: agibiansky Type: feature | Status: closed request | Milestone: 7.10.1 Priority: normal | Version: 7.8.2 Component: GHC API | Keywords: Resolution: fixed | Architecture: Unknown/Multiple Operating System: | Difficulty: Unknown Unknown/Multiple | Blocked By: Type of failure: | Related Tickets: None/Unknown | Test Case: | Blocking: | Differential Revisions: Phab:D71 | -------------------------------------+------------------------------------- Changes (by thoughtpolice): * milestone: => 7.10.1 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9294#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC