emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/haskell-tng-mode 7d6fa3d 091/385: thoughts on lexers


From: ELPA Syncer
Subject: [nongnu] elpa/haskell-tng-mode 7d6fa3d 091/385: thoughts on lexers
Date: Tue, 5 Oct 2021 23:59:08 -0400 (EDT)

branch: elpa/haskell-tng-mode
commit 7d6fa3d0abdc51bd3183d899d794132ff602c9a0
Author: Tseen She <ts33n.sh3@gmail.com>
Commit: Tseen She <ts33n.sh3@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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]