all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Use JS regex syntax in Scheme mode
@ 2020-08-08 18:59 Jakub Jankiewicz
  0 siblings, 0 replies; only message in thread
From: Jakub Jankiewicz @ 2020-08-08 18:59 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 1421 bytes --]

Hi,

Is it possible to merge any JS mode that have regular expressions and
integrate it with scheme mode? How hard it would be?

I have Lisp written in JavaScript https://jcubic.github.io/lips/
and I would like to have proper Emacs Mode for my language. The language
is based on scheme (almost 100% compatibile with R5RS and I'm wokring on
R7RS) but have few extensions like literal regular expressions that are almost
the same as one in JavaScript except it can't have space after first / to
prevent matching expressions like

   (/ (* 10 (/ 10 2))

I thikng that I will disable completly spaces in regexes to prevent any
ambiguity.

I also have object literals that are create created using syntax extensions
I've created for my language:

    &(:foo 10 :bar 20)

create JS object & is the same as ` or ' in scheme it map to macro call.

I have some experience with Emacs Lisp, but I didn't read much code and I
don't have much experience in creating Emacs modes, even that I have
created one that is on GitHub (for JS & PHP code coverage that I was not able
to merge with coverage.el because original author only care about Ruby).

Could anyone give me some tips how should I go about and create such mode?
Where I should look for regexes in JS mode and how should go about and adding
them to scheme mode?

Thanks
Jakub


--
Jakub Jankiewicz, Web Developer
https://jcubic.pl/me

[-- Attachment #2: Podpis cyfrowy OpenPGP --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-08-08 18:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-08 18:59 Use JS regex syntax in Scheme mode Jakub Jankiewicz

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.