PLT Tools-DrScheme Extension Manual

How to Design Programs: An Introduction to Programming and Computing

Info icon This preview shows pages 1–5. Sign up to view the full content.

PLT Tools: DrScheme Extension Manual Robert Bruce Findler ([email protected]) 372 Released December 2007
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

Copyright notice Copyright c 1996-2007 PLT Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Library General Public License, Version 2 published by the Free Software Foundation. A copy of the license is included in the appendix entitled “License.” Send us your Web links If you use any parts or all of the PLT Scheme package (software, lecture notes) for one of your courses, for your research, or for your work, we would like to know about it. Furthermore, if you use it and publicize the fact on some Web page, we would like to link to that page. Please drop us a line at [email protected] . Evidence of interest helps the DrScheme Project to maintain the necessary intellectual and financial support. We appreciate your help.
Image of page 2
Contents 1 This Manual 1 1.1 Thanks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 2 Implementing DrScheme Tools 2 2.1 Adding Languages to DrScheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 2.1.1 Adding module -based Languages to DrScheme . . . . . . . . . . . . . . . . . . . . . . . . 4 2.1.2 Adding Arbitrary Languages to DrScheme . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2.1.3 Language Extensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2.2 Creating New Kinds of DrScheme Frames . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2.3 Extending the Existing DrScheme Classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2.4 Expanding the User’s Program Text and Breaking . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2.5 Editor Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2.6 Language-specific capabilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 3 Tools Reference 8 3.1 drscheme:debug:profile-definitions-text-mixin . . . . . . . . . . . . . . . . . . 8 3.2 drscheme:debug:profile-interactions-text-mixin . . . . . . . . . . . . . . . . . . 8 3.3 drscheme:debug:profile-unit-frame-mixin . . . . . . . . . . . . . . . . . . . . . . . 8 3.4 drscheme:frame:<%> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 3.5 drscheme:frame:basics<%> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 3.6 drscheme:frame:basics-mixin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 3.7 drscheme:frame:mixin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 3.8 drscheme:frame:name-message% . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 3.9 drscheme:get/extend:base-definitions-canvas% = (canvas:delegate-mixin (canvas:info-mixin canvas:color%)) . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 i
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

CONTENTS CONTENTS 3.10 drscheme:get/extend:base-definitions-text% = (drscheme:debug:profile-definitions-text- drscheme:unit:definitions-text%) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 3.11 drscheme:get/extend:base-interactions-canvas% = (canvas:delegate-mixin (canvas:info-mixin canvas:color%)) . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 3.12 drscheme:get/extend:base-interactions-text% = (drscheme:debug:profile-interactions-tex drscheme:rep:text%) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 3.13 drscheme:get/extend:base-tab% = drscheme:unit:tab% . . . . . . . . . . . . . . . 16 3.14 drscheme:get/extend:base-unit-frame% = (drscheme:debug:profile-unit-frame-mixin drscheme:unit:frame%) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 3.15 drscheme:language:language<%> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 3.16 drscheme:language:module-based-language<%> . . . . . . . . . . . . . . . . . . . . . 23 3.17 drscheme:language:module-based-language->language-mixin . . . . . . . . . . 27 3.18 drscheme:language:simple-module-based-language<%> . . . . . . . . . . . . . . . 28 3.19 drscheme:language:simple-module-based-language% . . . . . . . . . . . . . . . . . 29 3.20 drscheme:language:simple-module-based-language->module-based-language-mixin 30 3.21 drscheme:rep:context<%> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 3.22 drscheme:rep:drs-bindings-keymap-mixin . . . . . . . . . . . . . . . . . . . . . . . . 35 3.23 drscheme:rep:text<%> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 3.24 drscheme:rep:text% . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 3.25 drscheme:unit:definitions-canvas% . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 3.26 drscheme:unit:definitions-text<%> . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 3.27 drscheme:unit:definitions-text% = (drscheme:rep:drs-bindings-keymap-mixin (drscheme:unit:program-editor-mixin (scheme:text-mixin text:info%))) 43 3.28 drscheme:unit:frame<%> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 3.29 drscheme:unit:frame% = (drscheme:frame:basics-mixin (drscheme:frame:mixin frame:searchable%)) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 3.30 drscheme:unit:interactions-canvas% . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 3.31 drscheme:unit:program-editor-mixin . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 3.32
Image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.
  • Fall '07
  • Fisler
  • Menu bar, PLT Scheme, DrScheme

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern