[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/beardbolt 7e4baa833e 068/323: Fix a few comments
From: |
ELPA Syncer |
Subject: |
[elpa] externals/beardbolt 7e4baa833e 068/323: Fix a few comments |
Date: |
Thu, 9 Mar 2023 10:58:17 -0500 (EST) |
branch: externals/beardbolt
commit 7e4baa833e963ce2b055134a52fe149981bbc138
Author: Jay Kamat <jaygkamat@gmail.com>
Commit: Jay Kamat <jaygkamat@gmail.com>
Fix a few comments
---
README.org | 7 ++++++-
rmsbolt.el | 28 ++++++++++++++--------------
2 files changed, 20 insertions(+), 15 deletions(-)
diff --git a/README.org b/README.org
index 8559c842e3..369479e128 100644
--- a/README.org
+++ b/README.org
@@ -21,6 +21,10 @@ versa.
- It's easy to add new languages (even those that use unique bytecode
formats)
without touching many files.
- Full undo (tree) system from Emacs on disassembly for easy comparisons
+- Much more flexible
+ - Supports dissasembling to bytecode as well as assembly
+ - Supports many languages that godbolt does not support, such as python,
+ common lisp, and ocaml.
- Infinitely hackable!
* Installation
@@ -84,7 +88,8 @@ No support for source->asm matching or filtering.
* Adding a Language
Adding support for a new language is fairly easy. The closer it is to existing
-compilers, the easier it will be. However, it is not excessively hard to add
+compilers, the easier it will be (to the point where a clone of a C compiler is
+just a couple copy-paste lines). However, it is not excessively hard to add
support for completely foreign compilers and bytecode/assembly formats.
As a minimum starting point, you must know how to compile a source file to
diff --git a/rmsbolt.el b/rmsbolt.el
index 35b0a404d1..8cf4b02276 100644
--- a/rmsbolt.el
+++ b/rmsbolt.el
@@ -215,7 +215,7 @@ Outputs assembly file if ASM."
(mode
'fundamental-mode
:type 'symbol
- :documentation "The mode to activate this language in.")
+ :documentation "The mode(s) to activate this language in.")
(supports-disass
nil
:type 'bool
@@ -272,7 +272,7 @@ Outputs assembly file if ASM."
" ")))
cmd))
(cl-defun rmsbolt--ocaml-compile-cmd (&key src-buffer)
- "Process a compile command for gcc/clang.
+ "Process a compile command for ocaml.
Needed as ocaml cannot output asm to a non-hardcoded file"
(let* ((diss (buffer-local-value 'rmsbolt-disassemble src-buffer))
@@ -303,7 +303,7 @@ Outputs assembly file if ASM."
(cl-defun rmsbolt--lisp-compile-cmd (&key src-buffer)
"Process a compile command for common lisp.
- Assumes function name to dissasemble is
'main'."
+ Assumes function name to dissasemble is 'main'."
(let* ((cmd (buffer-local-value 'rmsbolt-command src-buffer))
(interpreter (cl-first (split-string cmd nil t)))
(disass-eval "\"(disassemble 'main)\"")
@@ -316,17 +316,17 @@ Outputs assembly file if ASM."
"--eval" disass-eval "--non-interactive"
;; Remove leading comments
"|" "sed" "'s/^;\s//'" ">"
- (rmsbolt-output-filename src-buffer))
- " "))
-("clisp"
- (mapconcat 'identity
- (list cmd "-q" "-x"
- (concat
- "\"(load \\\"" (buffer-file-name) "\\\") "
disass-eval-unquoted "\"")
- ">" (rmsbolt-output-filename src-buffer))
- " "))
-(_
- (error "This Common Lisp interpreter is not supported")))))
+ (rmsbolt-output-filename src-buffer))
+ " "))
+ ("clisp"
+ (mapconcat 'identity
+ (list cmd "-q" "-x"
+ (concat
+ "\"(load \\\"" (buffer-file-name) "\\\") "
disass-eval-unquoted "\"")
+ ">" (rmsbolt-output-filename src-buffer))
+ " "))
+ (_
+ (error "This Common Lisp interpreter is not supported")))))
(cl-defun rmsbolt--rust-compile-cmd (&key src-buffer)
"Process a compile command for rustc."
(let* ((cmd (buffer-local-value 'rmsbolt-command src-buffer))
- [elpa] externals/beardbolt d37f8a0ebf 042/323: Remove reliance on hl-line-mode, (continued)
- [elpa] externals/beardbolt d37f8a0ebf 042/323: Remove reliance on hl-line-mode, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt a0527f16af 045/323: Add very basic support for common lisp, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt d7acfdd127 041/323: Fix rmsbolt temp directory generation being too late, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt f0d13c4ac2 036/323: Add a stronger blacklist for ocaml asm, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 22810d69a7 062/323: Add docs for python, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 503b51ecb8 066/323: Fix typo, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt ca92d533ad 061/323: Add basic support for python, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt fef52d3de3 057/323: Update readme, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 1f50b7bb7f 069/323: Add java framework, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 0e0d82d774 056/323: Override default directory to prevent rouge executables, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 7e4baa833e 068/323: Fix a few comments,
ELPA Syncer <=
- [elpa] externals/beardbolt 234e09b81a 065/323: Fix spelling of OCaml, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 285f9bd9be 074/323: Add missing import, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt d126f452d2 077/323: Update README, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 1001531172 073/323: Add java demo, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt db87a0a6a4 080/323: Refactor rmsbolt-temp-dir to be more clear it's a private variable, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 526ed37d71 088/323: Don't add overlays to non-rmsbolt-mode buffers, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 9967391c74 105/323: Clean up pony support, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 910509ce5d 104/323: Document buffer-local tweakables in readme, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 5cecc2fb67 096/323: Fix typo in README, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 7e25ed58f2 099/323: Merge branch 'patch-1' into 'master', ELPA Syncer, 2023/03/09