▼ |  | 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 | Signatures
11 | drracket: get/ extend
12 | drracket: unit
13 | drracket: language
14 | drracket: language-configuration
15 | drracket: debug
16 | drracket: rep
17 | drracket: frame
18 | drracket: help-desk
19 | drracket: eval
20 | drracket: modes
21 | drracket: module-language-tools
22 | drracket: module-language
23 | 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 →

### 22`` 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 →