Commit graph

13 commits

Author SHA1 Message Date
H. Peter Anvin (Intel)
87968c3596 editors/nasmtok.pl: break nasmtok.json into lines
Instead of generating one single huge line of text, add newlines after
suitable commas to make it at least a manageable text file.

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
2026-07-04 19:58:07 -07:00
H. Peter Anvin (Intel)
620dd315ee editors/builtin.mac: sync with executable (pick up the list options macros)
Regenerate editors/buildin.mac to pick up the new list options macros.

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
2026-07-04 19:52:16 -07:00
H. Peter Anvin (Intel)
139986238a editors/dumpbuiltin.sh: make a little more user-friendly
If no $NASM is defined and no nasm path has been given on the command
line, default to "../nasm".

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
2026-06-26 14:35:07 -07:00
H. Peter Anvin (Intel)
19125b6d46 builtin.mac: synchronize with the NASM binary
Update builtin.mac to match the current set of built-in NASM macros.

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
2026-06-24 15:56:50 -07:00
H. Peter Anvin (Intel)
08a369628e Rename emacstok.pl back to nasmtok.pl
This script can output more than just Emacs format these days; it is
already used to produce both Emacs and JSON output, and it seems
unlikely that we would want to create another script to output any
additional file formats.

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
2026-06-21 14:34:09 -07:00
H. Peter Anvin (Intel)
f216d5b65d editors: rename nasmtok.pl to emacstok.pl
Rename this script to reflect its function within the NASM tree. The
output file is still called nasmtok.el, however, as it reflects its
function within an Emacs environment.

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
2026-06-07 20:04:50 -07:00
H. Peter Anvin (Intel)
5b4d5cf2a7 editors/nasmtok.pl: don't overquote nasm-token-lists
The definition of nasm-token-lists was double quoted: both the list
itself and the tokens inside were quoted, which is not the right
thing.

Remove the unnecessary inner quoting.

Reported-by: 8dcc <8dcc@github.com>
Fixes: https://github.com/netwide-assembler/nasm/issues/231
Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
2026-06-07 19:56:20 -07:00
H. Peter Anvin (Intel)
c08b4edca1 Sync builtin.mac 2025-10-07 18:06:34 -07:00
H. Peter Anvin
7415a1e5f8 Build: update various build installation directories
Modernize and improve the handling of build directories.

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
2025-10-02 16:08:04 -07:00
H. Peter Anvin
534edcba04 editors: add JSON output
Add JSON formatted editor help output as a way to help more general
editor support code.

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
2025-10-02 14:18:57 -07:00
H. Peter Anvin
c6c67f3011 editors: add explicit special case handing
The automatic extraction procedure can only do so much. At some point
it is simpler to add explicit special case handling.

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
2025-10-02 13:57:15 -07:00
H. Peter Anvin
02042dae1c nasmtok.el: use ${file} to end, to match the start
Use ${file} in both places, in case someone uses a different output
filename for some reason.

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
2025-10-02 13:50:38 -07:00
H. Peter Anvin
01e40a9aeb Move editor help files to editors/, add NASM version number
Move the editor help files (currently nasmtok.el) to the editors/
subdirectory in anticipation of having more such files.

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
2025-10-02 13:49:43 -07:00