branch: elpa/haskell-tng-mode commit 7d6fa3d0abdc51bd3183d899d794132ff602c9a0 Author: Tseen She <ts33n....@gmail.com> Commit: Tseen She <ts33n....@gmail.com>
thoughts on lexers --- haskell-tng-lexer.el | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/haskell-tng-lexer.el b/haskell-tng-lexer.el index 3fea0e4..5d106ea 100644 --- a/haskell-tng-lexer.el +++ b/haskell-tng-lexer.el @@ -10,6 +10,18 @@ ;; ;;; Code: +;; See also (other than the GHC alex lexer) +;; +;; https://github.com/carymrobbins/intellij-haskforce/blob/master/src/com/haskforce/parsing/_HaskellParsingLexer.flex +;; https://github.com/typelead/intellij-eta/blob/eta-ide/plugin/src/main/eta/IntelliJ/Plugin/Eta/Lang/Lexer/EtaParsingLexer.hs +;; +;; We could potentially use FFI + Flex to do the lexing for us, giving us access +;; to much more powerful regexp rules (Emacs doesn't support zero width +;; matchers, and the backwards regexps are not as greedy as they could be) but +;; we would probably have to write a SMIE replacement since Flex doesn't do +;; backwards parsing, and we'd need to write an FFI interface that may introduce +;; performance problems (converting Emacs buffers into the Flex input format). + (require 'smie) (require 'haskell-tng-rx)