[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/beardbolt 22810d69a7 062/323: Add docs for python
From: |
ELPA Syncer |
Subject: |
[elpa] externals/beardbolt 22810d69a7 062/323: Add docs for python |
Date: |
Thu, 9 Mar 2023 10:58:16 -0500 (EST) |
branch: externals/beardbolt
commit 22810d69a7128668e8bdb66542e50c2a25c1ad2c
Author: Jay Kamat <jaygkamat@gmail.com>
Commit: Jay Kamat <jaygkamat@gmail.com>
Add docs for python
---
README.org | 13 +++++++++++++
rmsbolt.el | 6 ++++--
starters/rmsbolt.py | 16 ++++++++++++++++
3 files changed, 33 insertions(+), 2 deletions(-)
diff --git a/README.org b/README.org
index 63206249c6..c1187c23a7 100644
--- a/README.org
+++ b/README.org
@@ -38,6 +38,11 @@ add it..
:repo "jgkamat/rmsbolt"))
#+END_SRC
+* Running
+ Once installed, use the ~rmsbolt-lang~ functions to generate starter files, or
+ enable ~rmsbolt-mode~ in a supported language. Then run ~rmsbolt-compile~ or
+ use the default ~C-c C-c~ binding.
+
* Demo
** C/C++
@@ -54,6 +59,14 @@ demangling is done with rustfilt if available
[[https://s25.postimg.cc/h7npjnnun/output-2018-08-01-19_30_52.gif][https://s25.postimg.cc/h7npjnnun/output-2018-08-01-19_30_52.gif]]
+** Python
+
+Support for bytecode viewing. Python dosen't have many options, so most
+tweakables will not work. Python 3.7 is required for recursion into functions.
+Python 2 is unsupported.
+
+[[https://s25.postimg.cc/594qd9o4v/output-2018-08-04-18_07_45.gif][https://s25.postimg.cc/594qd9o4v/output-2018-08-04-18_07_45.gif]]
+
** Common Lisp
No support for source->asm matching or filtering.
diff --git a/rmsbolt.el b/rmsbolt.el
index c3db0cce83..6de3344d13 100644
--- a/rmsbolt.el
+++ b/rmsbolt.el
@@ -896,7 +896,8 @@ Outputs assembly file if ASM."
(src-file-name
(when rmsbolt-dir
(expand-file-name (rmsbolt-l-starter-file-name lang-def) (concat
rmsbolt-dir "starters/"))))
- (src-file-exists (file-exists-p src-file-name)))
+ (src-file-exists (when src-file-name
+ (file-exists-p src-file-name))))
(if (not src-file-exists)
(error "Could not find starter files! Are you sure the starter/ folder
is available?")
(find-file file-name)
@@ -916,7 +917,8 @@ Outputs assembly file if ASM."
(rmsbolt-defstarter "c++" 'c++-mode)
(rmsbolt-defstarter "ocaml" 'tuareg-mode)
(rmsbolt-defstarter "cl" 'lisp-mode)
-(rmsbolt-defstarter "rust" 'rust-mode)
+(rmsbolt-defstarter "rust " 'rust-mode)
+(rmsbolt-defstarter "python" 'python-mode)
;;;; Font lock matcher
(defun rmsbolt--goto-line (line)
diff --git a/starters/rmsbolt.py b/starters/rmsbolt.py
new file mode 100644
index 0000000000..7e7444f36c
--- /dev/null
+++ b/starters/rmsbolt.py
@@ -0,0 +1,16 @@
+# python rmsbolt starter file
+#
+# Local Variables:
+# rmsbolt-command: "python3"
+# End:
+
+RMS_MAP = {
+ 'R': 3,
+ 'M': 3,
+ 'S': 3
+}
+
+def isRMS(char):
+ return 3
+
+print(isRMS('R'))
- [elpa] externals/beardbolt 3bfc7ed2e3 012/323: Allow custom functions to parse arguments, (continued)
- [elpa] externals/beardbolt 3bfc7ed2e3 012/323: Allow custom functions to parse arguments, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 98cea6e8e0 023/323: Simplify creation of new starters with a macro, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 547a47e58f 022/323: Fix default commands, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 2530003c71 020/323: Remove rmsbolt-options, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt cf7d2787bc 027/323: Implement line number parsing, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 8fc36eacd8 044/323: Add option to force assembling, ELPA Syncer, 2023/03/09
- [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 <=
- [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, 2023/03/09
- [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