100+ results for '#lang'

Not the results you expected?

signature-syntax.rkt (git://github.com/gmarceau/PLT.git) Racket · 287 lines ✨ Summary

This Racket code defines a set of syntax transformers and macros for working with signatures, which are used to specify constraints on functions in a programming language. The transformers and macros allow developers to define and manipulate signatures, including attaching names to procedures, defining contracts, and transforming unfinished code into valid expressions that raise errors when used incorrectly.

1 #lang scheme/base

2

3 (provide :

lset.rkt (git://github.com/smorin/f4f.arc.git) Racket · 228 lines

33 ;; -Olin

34

35 #lang scheme/base

36

37 (require srfi/optional

monadic-turtles.rkt (git://github.com/VincentToups/racket-lib.git) Racket · 328 lines

1 #lang racket

2

3 (require

syntax-errors.rkt (git://github.com/gmarceau/PLT.git) Racket · 321 lines ✨ Summary

This Racket code tests various error scenarios in the language, including syntax errors, primitive contexts, and sequence-containing expressions. It exercises different types of definitions, binding forms, and internal definitions to ensure that the language correctly handles invalid constructs and produces informative error messages. The test cases cover a range of edge cases to validate the language’s robustness and error handling mechanisms.

1 #lang scheme/base

2 (require "../gentest-framework.rkt")

3 (provide proto:errors)

hiding.rkt (git://github.com/gmarceau/PLT.git) Racket · 210 lines ✨ Summary

This Racket code tests and verifies the behavior of a new scheme compiler, specifically its handling of binding expressions, module declarations, and syntax. It checks for correctness in various scenarios, including simple definitions, nested modules, and more complex cases involving lists and tuples. The output indicates whether the compiler produces valid or invalid code.

1 #lang scheme/base

2 (require rackunit)

3 (require macro-debugger/model/debug

manual-style.rkt (git://github.com/smorin/f4f.arc.git) Racket · 234 lines

1 #lang racket/base

2 (require "../decode.ss"

3 "../struct.ss"

169 (make-link-element

170 module-link-color

171 (list (racketmodfont "#lang"))

172 `(part ,(doc-prefix '(lib "scribblings/guide/guide.scrbl") "hash-lang"))))

173

test-stream-callback.rkt (git://github.com/jbclements/rack-portaudio.git) Racket · 214 lines

1 #lang racket

2

3 (require "helpers.rkt"

sets.scrbl (git://github.com/gmarceau/PLT.git) Racket · 259 lines ✨ Summary

This Racket code provides a set of functions for working with sets, including creating and manipulating sets, applying procedures to each element, and converting between sets and lists. It also defines several macros for constructing sets in different ways, such as using for loops and list-to-set conversions. The code is designed to be used in Racket programming language.

1 #lang scribble/doc

2 @(require "mz.rkt" (for-label racket/set))

3

reduce.rkt (git://github.com/gmarceau/PLT.git) Racket · 213 lines ✨ Summary

This Racket code defines a set of macros and functions for evaluating expressions in different contexts, including evaluation independence from store and output, handling dynamic-wind, continuation marks, and primitive operations like dynamic-wind and wcm. It provides a way to abstractly manipulate the evaluation process and interact with the environment.

1 #lang racket

2

3 (require redex/reduction-semantics

manual-vars.rkt (https://bitbucket.org/agocke/racket.git) Racket · 217 lines

1 #lang scheme/base

2 (require "../decode.rkt"

3 "../scheme.rkt"

mrcontainer.rkt (https://bitbucket.org/agocke/racket.git) Racket · 193 lines

1 #lang racket/base

2

3 (require racket/class

filter.rkt (https://github.com/jbclements/RSound.git) Racket · 224 lines

1 #lang racket/base

2

3 (require (only-in racket pi)

tests.rkt (git://github.com/ntoronto/plt-stuff.git) Racket · 267 lines

1 #lang typed/racket

2

3 (require plot/typed

defn.rkt (https://github.com/technomancy/dotfiles.git) Racket · 248 lines

1 #lang racket/base

2

3 (require racket/contract

test-tool.scm (git://github.com/97jaz/racket.git) Racket · 220 lines

1 #lang scheme/base

2

3 (require scheme/file scheme/class scheme/unit scheme/contract drscheme/tool framework mred

SL-semantics-test.rkt (git://github.com/agocke/racket.git) Racket · 376 lines

1 #lang racket

2

3 (require "SL-syntax.rkt"

term.rkt (git://github.com/agocke/racket.git) Racket · 226 lines

1 #lang scheme/base

2

3 (require (for-syntax scheme/base

arity-checking.rkt (git://github.com/plt/racket.git) Racket · 239 lines

1 #lang racket/base

2 (require "blame.rkt"

3 "kwd-info-struct.rkt"

select.rkt (git://github.com/plt/racket.git) Racket · 344 lines

1 #lang scheme

2 (require rackunit

3 syntax/parse)

prop2cnf.rkt (git://github.com/ianj/Typed-Racket-SMT-type-checker.git) Racket · 191 lines

1 #lang racket

2

3 (provide prop->cnf bconn? hash-foldr single-ify)

img-err.rkt (git://github.com/smorin/f4f.arc.git) Racket · 286 lines

1 #lang racket/base

2

3 (provide define/chk

first-order.rkt (git://github.com/plt/racket.git) Racket · 262 lines

1 #lang racket/base

2

3 (require "test-util.rkt")

collect-jump-targets.rkt (https://github.com/dyoo/whalesong.git) Racket · 349 lines

1 #lang typed/racket/base

2 (require "../compiler/expression-structs.rkt"

3 "../compiler/il-structs.rkt"

5-6.rkt (git://github.com/jeapostrophe/opencl.git) Racket · 115 lines

1 #lang at-exp racket/base

2 (require ffi/unsafe

3 (except-in racket/contract ->)

tc-let-unit.rkt (git://github.com/smorin/f4f.arc.git) Racket · 164 lines

1 #lang racket/unit

2

3 (require (rename-in "../utils/utils.rkt" [infer r:infer])

helpers.rkt (git://github.com/tnelson/Margrave.git) Racket · 166 lines

1 #lang racket

2

3 (require srfi/13

uri-codec.scrbl (git://github.com/smorin/f4f.arc.git) Racket · 161 lines

1 #lang scribble/doc

2 @(require "common.ss"

3 scribble/bnf

sets.scrbl (git://github.com/agocke/racket.git) Racket · 260 lines

1 #lang scribble/doc

2 @(require "mz.ss"

3 (for-label racket/set))

client.rkt (git://github.com/ekelly/Dice-Wars.git) Racket · 160 lines ✨ Summary

This Racket code defines a client class for a game, likely a simple board game. It creates a graphical representation of the game board and allows players to interact with it through mouse events and messages from a server. The client displays the current state of the game, including player positions and board elements, on a graphical window.

1 #lang class5

2

3 (require class5/universe)

scratch.rkt (git://github.com/tnelson/Margrave.git) Racket · 145 lines

16 ; along with Margrave. If not, see <http://www.gnu.org/licenses/>.

17

18 #lang racket

19

20 ; TEMPORARY! Will be a nice module path soon.

test-new.rkt (git://github.com/samth/var.git) Racket · 250 lines

1 #lang racket

2 (require redex)

3 (require (only-in "lang-paper.rkt" sλrec [ev ev1]))

cesk.rkt (git://github.com/samth/var.git) Racket · 200 lines

1 #lang racket

2 (require "lang.rkt" "meta.rkt" "step.rkt" "garbage.rkt" "util.rkt")

3 (require redex/reduction-semantics)

teach-module-begin.rkt (git://github.com/smorin/f4f.arc.git) Racket · 206 lines

1 #lang scheme/base

2

3 ; Once upon a time, there were three different variants. Preserve the

parallel-build.rkt (git://github.com/smorin/f4f.arc.git) Racket · 141 lines

1 #lang racket/base

2

3 (require compiler/cm

wordbreak.rkt (git://github.com/smorin/f4f.arc.git) Racket · 156 lines

1 #lang scheme/base

2 (require scheme/class

3 "../syntax.ss"

ch1.3.1.rkt (git://github.com/suguni/sicp.git) Racket · 231 lines

1 #lang racket

2

3 ; 1.3.1 프로시저를 인자로 받는 프로시저

test.rkt (git://github.com/jeapostrophe/opencl.git) Racket · 193 lines

1 #lang racket

2 (require ffi/unsafe

3 ffi/unsafe/cvector

parsing.scrbl (git://github.com/gmarceau/PLT.git) Racket · 163 lines ✨ Summary

This Racket code defines a library for parsing syntax, providing two main functions: syntax-parse and define/syntax-parse. These functions allow users to define patterns that match syntax objects, with various options for literal matching, pattern directives, and convention imports. The functions can be used to create parsers or to define syntax classes for pattern variables.

1 #lang scribble/doc

2 @(require scribble/manual

3 scribble/struct

apply-model.rkt (git://github.com/tnelson/Margrave.git) Racket · 158 lines

1 #lang racket/gui

2

3 (provide mg-model% apply-model apply-model/pos)

dungeon-scratch.rkt (git://github.com/VincentToups/racket-lib.git) Racket · 229 lines

1 #lang racket

2 (require (except-in utilities/lists any all)

3 (rename-in utilities/lists [any lists.any] [all lists.all])

ex-2.83.rkt (git://github.com/jevgeni/sicp-study.git) Racket · 220 lines

1 #lang racket

2 (define h (make-hash))

3 (define (put op type element)

proletariat.rkt (git://github.com/VincentToups/racket-lib.git) Racket · 213 lines

1 #lang racket

2 (require (planet "main.ss" ("murphy" "multimethod.plt" 2 1))

3 functional/point-free

lang.rkt (git://github.com/samth/var.git) Racket · 224 lines

1 #lang racket

2 (require racket/contract)

3 (require "env.rkt")

struct-inspectors.scrbl (git://github.com/smorin/f4f.arc.git) Racket · 170 lines

1 #lang scribble/doc

2 @(require "mz.ss")

3

grid.rkt (git://github.com/VincentToups/racket-lib.git) Racket · 207 lines

1 #lang racket

2

3 (require utilities/proletariat

bibtex.rkt (https://bitbucket.org/agocke/racket.git) Racket · 283 lines

1 #lang at-exp racket/base

2 (require racket/function

3 racket/match

mzrl.rkt (git://github.com/gmarceau/PLT.git) Racket · 120 lines ✨ Summary

This Racket code implements a Scheme-like readline library, providing functions for reading input from the terminal, managing command history, and setting completion functions. It also includes features like capturing the real input port, handling threads, and registering finalizers for memory management. The library is designed to work with the libreadline and libtermcap libraries on some platforms.

1 #lang scheme/base

2

3 (require mzlib/foreign (only-in '#%foreign ffi-obj)) (unsafe!)

wxme-random.rkt (git://github.com/gmarceau/PLT.git) Racket · 199 lines ✨ Summary

This Racket code creates a graphical user interface (GUI) with a text editor and various actions such as undo, redo, insert, delete, copy, cut, paste, change style, and more. It uses a combination of Scheme’s built-in GUI libraries and custom functions to create a dynamic and interactive environment for testing and experimenting with different GUI behaviors.

1 #lang scheme/gui

2

3 (define seed (abs (current-milliseconds)))

ttt.rkt (git://github.com/gmarceau/PLT.git) Racket · 181 lines ✨ Summary

The provided Racket code implements a game of Tic-Tac-Toe. It defines data structures for the game state, including spaces and boards, and functions to update the board and check for winning conditions. The tic-tac-toe function simulates a game between two players, O and X, until either player wins or the board is full (stalemate).

1 #lang racket/base

2 (require racket/contract

3 racket/match

more.scrbl (git://github.com/gmarceau/PLT.git) Racket · 165 lines ✨ Summary

This Racket code explains how to specify types in Typed Racket, a language that combines type safety with functional programming features. It covers various aspects of type annotation and binding forms, including definitions, local bindings, functions, single variables, expressions, and type inference. The code demonstrates how to use type annotations to ensure the correctness of programs and provides examples of different scenarios where types can be specified.

1 #lang scribble/manual

2

3 @begin[(require "../utils.rkt"

web-config-unit.rkt (git://github.com/gmarceau/PLT.git) Racket · 141 lines ✨ Summary

This Racket code defines a set of functions for generating web server configurations from configuration tables. It takes input from a table file, parses it into a configuration, and then expands paths to create a complete configuration. The configuration includes settings such as port numbers, listen IP addresses, and servlet namespaces. It also generates virtual hosts based on the configuration table.

1 #lang racket/base

2 (require mzlib/unit

3 racket/contract)

struct.scrbl (git://github.com/smorin/f4f.arc.git) Racket · 165 lines

1 #lang scribble/doc

2 @(require "common.ss"

3 (for-label syntax/struct))

main.rkt (git://github.com/get-bonus/get-bonus.git) Racket · 196 lines

1 #lang racket/base

2 (require racket/runtime-path

3 racket/match

decode.scrbl (git://github.com/smorin/f4f.arc.git) Racket · 214 lines

1 #lang scribble/doc

2 @(require scribble/manual

3 "utils.ss")

eigen.rkt (git://github.com/calvis/cKanren.git) Racket · 260 lines

1 #lang racket

2

3 (require "src/base.rkt" "tree-unify.rkt"

clojure.rkt (git://github.com/takikawa/racket-clojure.git) Racket · 288 lines

1 #lang racket/base

2

3 ;; Clojure compatibility

class-iop.rkt (git://github.com/gmarceau/PLT.git) Racket · 225 lines ✨ Summary

This Racket code defines a set of syntax extensions for creating interfaces, classes, and objects with dynamic methods. It provides macros for defining interfaces, checking object compatibility, sending messages to objects, initializing fields, and defining lambda functions. The code also includes helper functions for generating temporary names and checking method definitions.

1 #lang racket/base

2 ;; owner: ryanc

3 (require racket/class

manual-vars.rkt (git://github.com/smorin/f4f.arc.git) Racket · 156 lines

1 #lang scheme/base

2 (require "../decode.ss"

3 "../scheme.ss"

list.scrbl (git://github.com/smorin/f4f.arc.git) Racket · 209 lines

1 #lang scribble/doc

2 @(require "../common.ss"

3 (for-label mrlib/hierlist))

bitmap-dc.rkt (git://github.com/gmarceau/PLT.git) Racket · 197 lines ✨ Summary

This Racket code defines a class bitmap-dc% that extends default-dc-backend%. It provides a bitmap-based drawing context, allowing for pixel-level manipulation and scaling of images. The class interacts with Cairo graphics library to perform operations such as setting pixels, drawing sections, and installing colors. It also handles transformations, smoothing, and font rendering.

1 #lang racket/base

2 (require racket/class

3 ffi/unsafe/atomic

wordbreak.rkt (git://github.com/gmarceau/PLT.git) Racket · 156 lines ✨ Summary

This Racket code implements a standard word break algorithm for text editors. It takes a string and a window object as input, and returns two values: start and end, representing the start and end positions of a word in the text. The function considers various factors such as caret position, line breaks, and user selection to determine the word boundaries.

1 #lang scheme/base

2 (require scheme/class

3 "../syntax.rkt"

subtype-tests.rkt (git://github.com/gmarceau/PLT.git) Racket · 142 lines ✨ Summary

The Racket code defines a set of tests for checking if certain expressions are subtypes of others, specifically in the context of polymorphic types and function types. It uses a combination of define-go and subtype-tests to verify that various expressions meet the subtype criteria, including function types, variable arguments, and struct types.

1 #lang scheme/base

2

3 (require "test-utils.rkt"

lambda.scrbl (git://github.com/gmarceau/PLT.git) Racket · 245 lines ✨ Summary

This Racket documentation explains how to create functions using lambda expressions, including declaring rest arguments, optional arguments with default values, keyword arguments, and arity-sensitive functions with case-lambda. It provides examples of each type of function declaration and usage. The documentation also covers the use of apply, keyword-apply, and make-keyword-procedure for working with these types of functions.

1 #lang scribble/doc

2 @(require scribble/manual scribble/eval "guide-utils.rkt")

3

deriv-c.rkt (git://github.com/gmarceau/PLT.git) Racket · 181 lines ✨ Summary

This is a Racket data definition language (DDL) file that defines a large number of structs and their relationships, representing various components of a programming language compiler. It provides a framework for organizing and structuring the code used in compiling and evaluating expressions. The structs define different types of nodes, rules, and derivations, which are likely used to parse and analyze source code.

1 #lang racket/base

2 (provide (all-defined-out))

3

check-expect.rkt (git://github.com/dyoo/mzscheme-vm.git) Racket · 239 lines

1 #lang s-exp "../base.rkt"

2

3 (require (for-syntax racket/base)

s5.rkt (git://github.com/brownplt/LambdaS5.git) Racket · 477 lines ✨ Summary

This Racket code defines a set of rules for evaluating expressions, including arithmetic operations, control structures, and function calls. It provides a way to define custom behavior for specific expressions, allowing developers to extend the language’s functionality without modifying its core syntax. The output is a set of rules that can be used to evaluate expressions in a customized manner.

1 #lang racket

2 (require redex)

3 (provide s5 →s5)

make-gl-info.rkt (git://github.com/smorin/f4f.arc.git) Racket · 179 lines

1 #lang mzscheme

2

3 (require (prefix dynext: dynext/compile)

text-ui.rkt (git://github.com/gmarceau/PLT.git) Racket · 247 lines ✨ Summary

This Racket code is a test runner for a text-based user interface (textui). It takes a test suite as input and displays the results in a human-readable format, including pass/fail status, error messages, and detailed information about each test case. The output can be customized with different verbosity levels.

27 ;; Commentary:

28

29 #lang racket/base

30

31 (require racket/match

pretty-helper.rkt (git://github.com/gmarceau/PLT.git) Racket · 178 lines ✨ Summary

This Racket code is part of a pretty-printer for Scheme-like languages. It extends the existing pretty-printer to handle syntax objects that are indistinguishable after expansion, by mapping them to unique dummy values. This allows the printer to distinguish between equivalent expressions. The code also handles various data types, including structs, pairs, and symbols, and provides functions for unfolding prefab structs and checking special expressions.

1 #lang racket/base

2 (require racket/pretty

3 unstable/class-iop

zipper.rkt (git://github.com/ntoronto/plt-stuff.git) Racket · 192 lines

1 #lang racket/base

2

3 ;; todo: unzip integers like vectors of bits?

syntax.rkt (https://bitbucket.org/agocke/racket.git) Racket · 189 lines

1 #lang racket/base

2 (require (for-syntax racket/base

3 racket/private/sc))

search.rkt (git://github.com/gmarceau/PLT.git) Racket · 100 lines ✨ Summary

This Racket code implements a function find-string-embedded that searches for a given string within an editor’s text content, considering various parameters such as direction (forward or backward), start and end positions, case sensitivity, and whether to pop out the found snippet. It returns the position of the found string in the editor’s text.

1 #lang scheme/base

2 (require scheme/contract

3 scheme/class

font-dir.rkt (git://github.com/gmarceau/PLT.git) Racket · 116 lines ✨ Summary

This Racket code defines a font-name-directory class that manages font information, including font names, family symbols, and face names. It provides functions to find font IDs, get face names, set post-script and screen names, and retrieve default fonts for families. The get-family-builtin-face function returns the name of a built-in face for a given family symbol.

1 #lang racket/base

2 (require racket/class

3 "syntax.rkt"

module-begin.rkt (git://github.com/gmarceau/PLT.git) Racket · 210 lines ✨ Summary

This Racket code defines a module expansion system that processes a module definition, including imports, definitions, and signatures. It expands requires, provides, and other forms to make them visible to the module expander, and then applies the module-expansion machinery to process the expanded form. The result is a fully expanded module definition.

1 #lang scheme/base

2

3 (provide module-begin)

struct.scrbl (git://github.com/gmarceau/PLT.git) Racket · 164 lines ✨ Summary

This Racket code defines a module for working with struct definitions, including parsing and generating code for defining structs. It provides functions to parse define-struct forms, generate struct names and types, and create expansion-time information for struct declarations. The code is designed to be used in a macro expander to generate code for working with structs.

1 #lang scribble/doc

2 @(require "common.rkt" (for-label syntax/struct))

3

mem.rkt (git://github.com/gmarceau/PLT.git) Racket · 173 lines ✨ Summary

This Racket code tests various GUI components, such as frames, editors, and pasteboards, to ensure they allocate memory correctly when created and closed. It simulates user interactions like closing windows and collecting garbage to verify that memory is released properly. The test suite also checks the behavior of different frame classes and their associated components.

1 #lang racket/base

2 (require "test-suite-utils.rkt")

3

iteration-6.rkt (git://github.com/gmarceau/PLT.git) Racket · 172 lines ✨ Summary

This Racket code defines a simple web server that displays a blog with posts and comments. The blog can be updated by inserting new posts, comments, or canceling changes. The server generates HTML pages for each post, allowing users to view individual posts, add comments, or return to the main blog page.

1 #lang web-server/insta

2

3 ;; A blog is a (make-blog posts)

labelled-menu-item-intf.scrbl (git://github.com/smorin/f4f.arc.git) Racket · 124 lines

1 #lang scribble/doc

2 @(require "common.ss")

3

splicing.rkt (git://github.com/smorin/f4f.arc.git) Racket · 87 lines

1 #lang racket/base

2 (require (for-syntax racket/base

3 "../../parse.ss"

writer.rkt (git://github.com/smorin/f4f.arc.git) Racket · 170 lines

1 #lang racket

2 (require "structures.rkt")

3

manual-scheme.rkt (git://github.com/smorin/f4f.arc.git) Racket · 206 lines

1 #lang racket/base

2 (require "../decode.ss"

3 "../struct.ss"

poly-c.scrbl (git://github.com/smorin/f4f.arc.git) Racket · 96 lines

1 #lang scribble/manual

2 @(require scribble/eval

3 "utils.rkt"

good-collector.rkt (git://github.com/gmarceau/PLT.git) Racket · 275 lines ✨ Summary

The Racket code implements a garbage collector for a simple heap data structure. It allocates memory to locations, marks gray addresses as white when they’re accessed, and frees memory when all references to an address are gone. The collect-garbage function runs the garbage collector on a given vector of locations, updating the heap accordingly.

1 #lang plai/collector

2

3 #|

merge.rkt (git://github.com/jeapostrophe/compiler.git) Racket · 164 lines ✨ Summary

This Racket code is part of a compiler, specifically handling the merging of compilation top-levels and forms. It recursively processes forms within a compilation top-level, updating offsets for toplevels, stxs, and lifts, and remapping module variables. The goal is to optimize compilation by reusing and combining existing forms while preserving their semantics.

1 #lang racket

2 (require compiler/zo-parse

3 "util.rkt"

0011.rkt (git://github.com/samdphillips/euler.git) Racket · 95 lines

1 #lang racket/base

2

3 #|

utils.rkt (git://github.com/masm/sines.git) Racket · 134 lines ✨ Summary

This Racket code defines a set of functions for working with Scheme syntax, including dispatch-lambda/arity->lambda and app->let-node. It also provides functions for renaming lexical IDs and creating new global IDs. The code uses a combination of pattern matching and hash tables to rename lexical IDs in Scheme expressions, allowing for more flexible and efficient manipulation of Scheme syntax.

1 #lang scheme/base

2

3 (require

printing.scrbl (git://github.com/smorin/f4f.arc.git) Racket · 90 lines

1 #lang scribble/doc

2 @(require "common.ss"

3 scribble/struct)

predicates-test.rkt (git://github.com/clklein/predicates.git) Racket · 462 lines

1 #lang racket

2

3 (require "predicates.rkt"

geometry.rkt (git://github.com/VincentToups/racket-lib.git) Racket · 498 lines

1 #lang racket

2

3 (require functional/point-free)

exercise-control.rkt (git://github.com/dyoo/mzscheme-vm.git) Racket · 134 lines

1 #lang s-exp "../../lang/wescheme.ss"

2

3 (printf "exercise-control.rkt\n")

tree-value.rkt (git://github.com/ntoronto/plt-stuff.git) Racket · 147 lines

1 #lang typed/racket/base

2

3 (require racket/promise

input.rkt (https://bitbucket.org/geoffhill/lc-compiler.git) Racket · 186 lines

1 #lang plai

2

3 ;;; EECS 322 L Compiler PLAI Input (Code Parsing)

gen-jit-ts.rkt (git://github.com/gmarceau/PLT.git) Racket · 217 lines ✨ Summary

The code generates C source files for a JIT compiler, specifically for handling type-specific instructions (TSIs) and their corresponding glue code for future and runtime execution. It defines prototypes, function signatures, and implementations for these TSIs, which are used to optimize performance in the compiler. The generated files can be used as part of a larger JIT compiler project.

1 #lang at-exp scheme/base

2 (require scheme/string)

3

string-output.scrbl (git://github.com/gmarceau/PLT.git) Racket · 155 lines ✨ Summary

This Racket code defines a set of procedures for writing data to an output port, including characters, bytes, strings, and special values. It provides various options for flushing buffered data, handling errors, and synchronizing writes with events. The procedures are designed to work with different types of ports, such as file streams, pipes, and TCP connections, and can be used in a variety of applications.

1 #lang scribble/doc

2 @(require "mz.rkt")

3

syntax2.rkt (git://github.com/masm/sines.git) Racket · 526 lines ✨ Summary

This Racket code defines a set of macros and data structures for building Scheme-like programs. It provides syntax for defining modules, functions, loops, conditionals, and variables, as well as support for lexical scoping and global references. The output appears to be a generated version of the Scheme language, with many of its core features implemented in Racket.

1 #lang scheme/base

2

3 (require scheme/base

math.rkt (https://bitbucket.org/agocke/racket.git) Racket · 182 lines

4 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

5

6 #lang racket/base

7

8 (require "unsafe/ops.rkt"

126 ;; Timing tests below provided by Jos Koot for the order-of-magnitude function

127

128 #lang racket

129

130 ;;; Tests and timings of order-of-magnitude

sc.rkt (git://github.com/gmarceau/PLT.git) Racket · 177 lines ✨ Summary

This Racket code defines a set of syntax classes and parsers for creating custom syntax classes, parsing expressions, and defining new syntax classes with attributes and definitions. It provides a way to define custom syntax classes using define-syntax-class and define-splicing-syntax-class, as well as parse expressions using syntax-parse and parser/rhs.

1 #lang racket/base

2 (require (for-syntax racket/base

3 syntax/stx

drracket.rkt (git://github.com/gmarceau/PLT.git) Racket · 152 lines ✨ Summary

This Racket code configures and initializes various components for a DrRacket environment, including compilation management, tracing, parallel build, and profiling. It loads and installs necessary modules, sets up event handling and logging, and enables tracing and parallel build as specified by command-line arguments or environment variables. The profiler is also initialized if the PLTDRPROFILE variable is set.

1 #lang racket/base

2 (require racket/gui/base "private/key.rkt")

3

text-ui-test.rkt (git://github.com/gmarceau/PLT.git) Racket · 225 lines ✨ Summary

This Racket code defines a test suite for the text-ui library, which is used to write unit tests with pretty-printed output. The test suite includes various scenarios, such as failing tests, quiet mode, and different output formats (normal, verbose). It also checks the behavior of run-tests in different modes.

27 ;; Commentary:

28

29 #lang racket/base

30

31 (require racket/runtime-path

rewriter.rkt (git://github.com/smorin/f4f.arc.git) Racket · 61 lines

1 #lang racket/base

2 (require (for-syntax syntax/parse racket/base syntax/id-table racket/dict

3 unstable/debug))

compat.scrbl (git://github.com/smorin/f4f.arc.git) Racket · 97 lines

1 #lang scribble/doc

2 @(require "common.rkt"

3 scribble/eval

14.rkt (git://github.com/gmarceau/PLT.git) Racket · 228 lines ✨ Summary

This Racket code provides a set of functions for working with character sets, including predicates and comparison, iteration, creation, querying, and algebraic operations. It also defines standard character sets such as lower-case, upper-case, and digit characters. The functions are designed to be polymorphic, allowing them to work with different data types and character encodings.

1 #lang typed-scheme

2 (require/opaque-type Char-Set char-set? srfi/14)

3

tsyntax.rkt (git://github.com/jeapostrophe/opencl.git) Racket · 188 lines

1 #lang at-exp racket/base

2 (require ffi/unsafe

3 racket/bool

run.rkt (git://github.com/gmarceau/PLT.git) Racket · 149 lines ✨ Summary

This Racket code defines a command-line tool for generating documentation from a Scribble source file. It supports multiple formats (text, HTML, LaTeX, PDF) and allows users to customize various settings such as output directory, style files, and cross-reference information. The tool can be run with different options to generate the desired format of documentation.

1 #lang racket/base

2

3 (require "core.rkt"

decode.rkt (git://github.com/smorin/f4f.arc.git) Racket · 328 lines

1 #lang scheme/base

2 (require "core.ss"

3 "private/provide-structs.ss"

demo.rkt (git://github.com/tnelson/Margrave.git) Racket · 226 lines

16 ; along with Margrave. If not, see <http://www.gnu.org/licenses/>.

17

18 #lang racket

19

20 (require margrave

slider.rkt (git://github.com/gmarceau/PLT.git) Racket · 178 lines ✨ Summary

This Racket code defines a custom slider widget, slider%, which is a graphical user interface (GUI) component that allows users to select a value from a range. It inherits from an existing item% class and provides additional functionality such as updating the slider’s value and sending notifications when the value changes. The widget can be used in GUI applications built with Racket.

1 #lang racket/base

2 (require racket/class

3 ffi/unsafe

struct.rkt (git://github.com/jeapostrophe/mongodb.git) Racket · 153 lines

1 #lang racket/base

2 (require (for-syntax racket/base

3 syntax/parse

2-5.rkt (git://github.com/Tabemasu/sicp.git) Racket · 397 lines ✨ Summary

This Racket code implements a polynomial package with operations such as addition, subtraction, multiplication, and division of polynomials. It defines data structures for representing polynomials and their terms, and provides functions to perform these operations on them. The code also includes tests and interfaces to the rest of the system, allowing other parts of the program to use the polynomial package.

1 #lang racket

2

3 (require "2-4.rkt")