▼ |  | Dr Racket Plugins

1 | Implementing Dr Racket Plugins
2 | Adding Languages to Dr Racket
3 | Creating New Kinds of Dr Racket Frames
4 | Extending the Existing Dr Racket Classes
5 | Expanding the User’s Program Text and Breaking
6 | Editor Modes
7 | Language-Specific Capabilities
8 | Check Syntax
9 | Teaching Languages
10 | drracket: get/ extend
11 | drracket: unit
12 | drracket: language
13 | drracket: language-configuration
14 | drracket: debug
15 | drracket: rep
16 | drracket: frame
17 | drracket: help-desk
18 | drracket: eval
19 | drracket: modes
20 | drracket: module-language-tools
21 | drracket: module-language
22 | Backwards Compatibility
| Index

On this page:

drracket: language: module-language<%>
get-users-language-name
drracket: module-language: add-module-language
drracket: module-language: module-language-put-file-mixin

top ← prev up next →

### 21`` drracket:module-language

> interface

> drracket:language:module-language<%> : interface?

The only language that implements this interface is DrRacket’s “Use the language declared in the source” language.

> > > method

> > > (send a-drracket:language:module-language get-users-language-name)

> > → string

> Returns the name of the language that is declared in the source, as a string.

> > procedure

> > (drracket:module-language:add-module-language) → any

Adds the module language to DrRacket. This is called during DrRacket’s startup.

> > procedure

> > (drracket:module-language:module-language-put-file-mixin super%)

> → (implementation?/c text:basic<%>)
> super% : (implementation?/c text:basic<%>)

Extends super% by overriding the put-file method to use a default name from the buffer, if the buffer contains something like (module name ...).
top ← prev up next →