Scripting Language Interface
Built-in Commands (without parameters)
(sg:p) for each command p with no parameters.
Built-in Commands (with parameters)
(sg:auto-scroll-sets string string string)
(sg:cd string)
(sg:change-view string boolean)
(sg:coerce-buffer string)
(sg:compile string)
(sg:delete-buffer string)
(sg:describe-command string)
(sg:eval-file string)
(sg:eval-string string)
(sg:execute-command string)
(sg:find-name)
(sg:goto-line k)
(sg:goto-xline k)
(sg:grep string)
(sg:insert-file-structure string)
(sg:insert-file-text string)
(sg:load-names string boolean)
(sg:new string string string)
(sg:next-error-as string)
(sg:open string string string)
(sg:print string k boolean boolean)
(sg:print-file string string k)
(sg:print-setup ...)
(sg:save-as string string string)
(sg:save-attribute string string)
(sg:save-selection-to-file string string string)
(sg:search string string boolean string boolean)
(sg:set-parameters ...)
(sg:shell-command string)
(sg:show-attribute string)
(sg:structural-search string string string boolean string boolean)
(sg:switch-to-buffer string string)
Defining or Redefining Commands
(sg:add-command string proc)
(sg:delete-command string)
(sg:current-command string)
Status
sg:status-code
sg:status-message
sg:status-class
sg:message-buffer
sg:message-window
sg:max-message-history
(sg:set-status! n string char)
(sg:flush-message)
(sg:clear-status!)
Menus
(sg:add-menu)
(sg:delete-menu string)
Structured Values
Phyla
(sg:phylum? obj)
(sg:string->phylum string)
(sg:phylum->string phylum)
Operators
(sg:operator? obj)
(sg:string->operator string)
(sg:operator->string operator)
(sg:operator-phylum operator)
(sg:operator-arity operator)
(sg:operator-parameter operator k)
Terms
(sg:term? obj)
(sg:term-operator term)
(sg:term-phylum term)
(sg:build operator term ...)
(sg:term-arity term)
(sg:child term k)
(sg:elided? term)
Primitive Phyla, Operators, and Terms
(sg:term-primitive? obj)
(sg:child* term k)
Placeholder and Completing Terms
(sg:placeholder-term phylum)
(sg:completing-term phylum)
Optional Phyla
(sg:phylum-optional? phylum)
Term Sequences
(sg:phylum-sequence? phylum)
(sg:term->term-list term)
(sg:term-list->term phylum list)
Scheme Values
(sg:explode term)
(sg:explode* term)
(sg:implode obj)
(sg:implode* obj)
Attributed Terms
(sg:attributed? term)
(sg:parented? term)
(sg:parent term)
(sg:child-number term)
Text Buffers
(sg:has-text-buffer? term)
(sg:text-buffer term)
(sg:text-buffer-exclusion term)
Attributes
(sg:term-attribute term string)
Pattern Matching
(sg:case term (pattern body) ...)
Buffers
(sg:current-buffer)
(sg:buffer-term)
(sg:buffer-list)
(sg:buffer-modified? string)
(sg:buffer-file string)
Windows
(sg:window-list)
(sg:current-window)
(sg:window-exists string)
(sg:window-buffer string)
(sg:window-view string)
(sg:set-window! string)
Selections
(sg:get-structural-selection)
(sg:set-structural-selection! selection)
(sg:structural-selection-apex)
(sg:context)
(sg:operator)
(sg:structural-selection-string)
(sg:selection)
(sg:set-selection! k k)
Parsing and Unparsing
(sg:parse string phylum)
(sg:unparse string selection)
Textual Editing
(sg:text-insertion-point)
(sg:text k k)
(sg:text-linestart k)
(sg:text-lineend k)
(sg:text-wordstart k)
(sg:text-wordend k)
(sg:text-scan k string string boolean)
(sg:text-line k)
(sg:text-end)
(sg:text-replace! k k string)
(sg:text-insert! string)
Line numbers
(sg:line-number)
(sg:xline-number-max)
(sg:xline-number-min)
Structural Editing
(sg:replace! term term)
Transforms and Actions
(sg:add-transform string string phylum)
(sg:add-action string string phylum)
(sg:delete-transform string phylum)
(sg:delete-all-transforms string phylum)
(sg:delete-transforms-with-name string)
(sg:delete-transforms-with-phylum phylum)
(sg:delete-added-transforms)
(sg:mask-transforms string phylum pattern)
Searching and Replacing
(sg:traverse term (pattern body) ...)
(sg:traverse* term (pattern body) ...)
Input / Output
(sg:input term)
(sg:make-dialog)
(sg:write-message string)
sg:interactive-mode
sg:textual-mode
sg:find-names-as-text
Compiler Integrations
sg:compiler-choice
sg:compiler-command-data
Files
Locating Files
sg:home
(sg:find-path string)
System Control Hooks
Finalization
(sg:finalize)
Miscellaneous
(sg:batch-mode)
(sg:editor-name)
(sg:editor-version)
(sg:display-name)
sg:max-eval-depth
Hypertext Links
sg:web-browser
sg:html-root
sg:hypertext-ht
(sg:follow-hypertext-link string)
(sg:follow-lrm-link string)
(sg:follow-other-link string)
(sg:follow-url-link string)
(sg:load-html-file string string)
User-defined Headers
Boeing Headers (load "aahome/scripts/boeing.headers.stk")
(sg:install-boeing-headers)
(sg:un-install-boeing-headers)
ADL Headers (load "aahome/scripts/adl.headers.stk")
(sg:install-adl-headers)
(sg:un-install-adl-headers)