What are the common languages ​​that people use today?

Wikipedia says:

Extensible programming is a term used in computer science to describe a computer programming style that focuses on the extension mechanisms of a programming language, compiler, and runtime.

For example, Tcl allows you to write your own control structures. See here .

I am interested in compiling a list of extensible programming languages ​​that are used in real code. It would be nice if you could give an example for your language.

+3
source share
7 answers

LISP (Common Lisp, Guile ..) - , , - . , C . , + : !

LISP , Guile ( ) GNU.

+4

Ruby , , , , , ... .

, Ruby: -)

+3

Scala , , . , :

val romanNumeral = Map(
    1 -> "I", 2 -> "II", 3 -> "III"
)

The β†’ - , 1, .

+1

Jetbrains MPS (Meta-Programming System) . , , , . Java .

mbeddr - C, . , send/receive + / , , , PLE. , gdb . C , C M2T.

Aynth - , mbeddr /.

, , , , , , . . .

+1

Seed7. Seed7 :

. Seed7 Seed7. : , .

Seed7 . . Seed7 , . IMHO Seed7 - , , . , , .

+1

Jeebox - , , .

, ...

Jeebox.

( , Jeebox, , - , . , , , , . , , , Jeebox, , .)

0

TCL - :

Tcl " " , " - " , .

, while .

# rename original while to orig_while for future usage.
rename while orig_while; 

#redefine while
proc while {cond body} {
# add customization code

# calculate while call count.
global while_call_count;
incr while_call_count;

# call original while in uper level stack 
 uplevel orig_while $cond $body;

# add customization code
}

Tcl has a C language interface that makes it easy to integrate Tcl into an existing program. Tcl is used very widely in EDA tools .

And finally, TCL is so strong that it is impossible to determine Tcl BNF , which brings a lot of headaches .

0
source

Source: https://habr.com/ru/post/1725992/


All Articles