Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gendl
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
47
Issues
47
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gendl
gendl
Commits
5efb5056
Commit
5efb5056
authored
Sep 08, 2014
by
Dave Cooper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reverted cookie urls for now
parent
cce1fd0b
Changes
109
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
109 changed files
with
26012 additions
and
53537 deletions
+26012
-53537
apps/ta2/ta2.asd
apps/ta2/ta2.asd
+16
-31
apps/tasty/source/inspector.lisp
apps/tasty/source/inspector.lisp
+556
-565
apps/tasty/tasty.asd
apps/tasty/tasty.asd
+18
-35
apps/translators/translators.asd
apps/translators/translators.asd
+13
-24
apps/tree/tree.asd
apps/tree/tree.asd
+13
-24
apps/yadd/yadd.asd
apps/yadd/yadd.asd
+19
-33
base/base.asd
base/base.asd
+31
-50
base/expanders/source/inputs.lisp
base/expanders/source/inputs.lisp
+187
-186
base/macros/source/define-object.lisp
base/macros/source/define-object.lisp
+682
-660
base/rest/source/aggregate.lisp
base/rest/source/aggregate.lisp
+152
-152
base/rest/source/bodies.lisp
base/rest/source/bodies.lisp
+62
-58
base/rest/source/make-part.lisp
base/rest/source/make-part.lisp
+104
-97
base/source/metaclasses.lisp
base/source/metaclasses.lisp
+74
-73
base/source/parameters.lisp
base/source/parameters.lisp
+2
-1
cl-lite/cl-lite.asd
cl-lite/cl-lite.asd
+12
-24
demos/bus/bus.asd
demos/bus/bus.asd
+25
-44
demos/ledger/ledger.asd
demos/ledger/ledger.asd
+12
-23
demos/robot/robot.asd
demos/robot/robot.asd
+13
-24
demos/wire-world/wire-world.asd
demos/wire-world/wire-world.asd
+11
-20
documentation/training/g102-tud/examples/examples.asd
documentation/training/g102-tud/examples/examples.asd
+11
-23
geom-base/geom-base.asd
geom-base/geom-base.asd
+60
-91
geom-base/wire/source/base-object.lisp
geom-base/wire/source/base-object.lisp
+17
-11
geom-base/wire/source/global-filleted-polyline.lisp
geom-base/wire/source/global-filleted-polyline.lisp
+2
-1
glisp/glisp.asd
glisp/glisp.asd
+13
-24
gwl-graphics/gwl-graphics.asd
gwl-graphics/gwl-graphics.asd
+18
-32
gwl/ajax/source/base-ajax-sheet.lisp
gwl/ajax/source/base-ajax-sheet.lisp
+2
-1
gwl/gwl.asd
gwl/gwl.asd
+40
-61
gwl/source/answer.lisp
gwl/source/answer.lisp
+23
-36
gwl/source/base-html-sheet.lisp
gwl/source/base-html-sheet.lisp
+11
-30
gwl/source/macros.lisp
gwl/source/macros.lisp
+4
-11
gwl/source/new-urls.lisp
gwl/source/new-urls.lisp
+9
-21
regression/data/approximated-curve-test.data
regression/data/approximated-curve-test.data
+48
-48
regression/data/arc-curve-test.data
regression/data/arc-curve-test.data
+16
-16
regression/data/b-spline-curve-test.data
regression/data/b-spline-curve-test.data
+16
-16
regression/data/b-spline-surface-test.data
regression/data/b-spline-surface-test.data
+12
-12
regression/data/blended-solid-test.data
regression/data/blended-solid-test.data
+391
-423
regression/data/boolean-test.data
regression/data/boolean-test.data
+66
-67
regression/data/box-solid-test.data
regression/data/box-solid-test.data
+25
-32
regression/data/boxed-curve-test.data
regression/data/boxed-curve-test.data
+86
-95
regression/data/boxed-surface-test.data
regression/data/boxed-surface-test.data
+346
-362
regression/data/brep-intersect-test.data
regression/data/brep-intersect-test.data
+132
-141
regression/data/compatible-curves-test.data
regression/data/compatible-curves-test.data
+5
-5
regression/data/compatible-surfaces-test.data
regression/data/compatible-surfaces-test.data
+4
-4
regression/data/composed-curve-test.data
regression/data/composed-curve-test.data
+26
-28
regression/data/composed-curves-test.data
regression/data/composed-curves-test.data
+55
-58
regression/data/cone-solid-test.data
regression/data/cone-solid-test.data
+351
-353
regression/data/cylinder-solid-test.data
regression/data/cylinder-solid-test.data
+397
-402
regression/data/decomposed-curves-test.data
regression/data/decomposed-curves-test.data
+43
-45
regression/data/dropped-curve-test.data
regression/data/dropped-curve-test.data
+121
-123
regression/data/dual-blend-surface-test.data
regression/data/dual-blend-surface-test.data
+190
-221
regression/data/edge-blend-surface-test.data
regression/data/edge-blend-surface-test.data
+190
-221
regression/data/elliptical-curve-test.data
regression/data/elliptical-curve-test.data
+8
-8
regression/data/extended-surface-test.data
regression/data/extended-surface-test.data
+63
-60
regression/data/extruded-solid-test.data
regression/data/extruded-solid-test.data
+153
-154
regression/data/fitted-curve-test-2.data
regression/data/fitted-curve-test-2.data
+75
-79
regression/data/fitted-curve-test-3.data
regression/data/fitted-curve-test-3.data
+27
-28
regression/data/fitted-curve-test-4.data
regression/data/fitted-curve-test-4.data
+5
-5
regression/data/fitted-curve-test.data
regression/data/fitted-curve-test.data
+27
-28
regression/data/fitted-surface-test-2.data
regression/data/fitted-surface-test-2.data
+88
-107
regression/data/fitted-surface-test-3.data
regression/data/fitted-surface-test-3.data
+21
-24
regression/data/fitted-surface-test.data
regression/data/fitted-surface-test.data
+23
-25
regression/data/general-dual-blend-surface-test.data
regression/data/general-dual-blend-surface-test.data
+190
-221
regression/data/global-filleted-polyline-curve-test.data
regression/data/global-filleted-polyline-curve-test.data
+38
-40
regression/data/global-filleted-polyline-curves-test.data
regression/data/global-filleted-polyline-curves-test.data
+38
-40
regression/data/iges-reader-test.data
regression/data/iges-reader-test.data
+1610
-1627
regression/data/iges-writer-test.data
regression/data/iges-writer-test.data
+1
-1
regression/data/intersected-solid-test.data
regression/data/intersected-solid-test.data
+159
-165
regression/data/iso-curve-test.data
regression/data/iso-curve-test.data
+5
-6
regression/data/joined-surfaces-test.data
regression/data/joined-surfaces-test.data
+2
-3
regression/data/linear-curve-test.data
regression/data/linear-curve-test.data
+1
-1
regression/data/lofted-surface-test-2.data
regression/data/lofted-surface-test-2.data
+197
-244
regression/data/lofted-surface-test.data
regression/data/lofted-surface-test.data
+12
-15
regression/data/merged-solid-test-bt.data
regression/data/merged-solid-test-bt.data
+14
-19
regression/data/merged-solid-test.data
regression/data/merged-solid-test.data
+22
-32
regression/data/native-reader-test.data
regression/data/native-reader-test.data
+1610
-1627
regression/data/pegasus-regioned-solid-test.data
regression/data/pegasus-regioned-solid-test.data
+8236
-8314
regression/data/planar-contour-surface-test.data
regression/data/planar-contour-surface-test.data
+5
-5
regression/data/planar-offset-curve-test.data
regression/data/planar-offset-curve-test.data
+57
-58
regression/data/planar-section-curve-test.data
regression/data/planar-section-curve-test.data
+89
-95
regression/data/planar-section-curves-test.data
regression/data/planar-section-curves-test.data
+54
-58
regression/data/planar-surface-test.data
regression/data/planar-surface-test.data
+2
-2
regression/data/projected-curve-test.data
regression/data/projected-curve-test.data
+50
-54
regression/data/rectangular-surface-test.data
regression/data/rectangular-surface-test.data
+2
-3
regression/data/regioned-solid-test.data
regression/data/regioned-solid-test.data
+235
-235
regression/data/reparameterized-curve-test.data
regression/data/reparameterized-curve-test.data
+6
-7
regression/data/revolved-surface-test.data
regression/data/revolved-surface-test.data
+48
-51
regression/data/revolved-surfaces-test.data
regression/data/revolved-surfaces-test.data
+67
-68
regression/data/round-trip.stp
regression/data/round-trip.stp
+0
-26695
regression/data/ruled-surface-test.data
regression/data/ruled-surface-test.data
+8
-8
regression/data/separated-solid-test.data
regression/data/separated-solid-test.data
+350
-352
regression/data/sewn-solid-test.data
regression/data/sewn-solid-test.data
+24
-28
regression/data/shelled-solid-test.data
regression/data/shelled-solid-test.data
+1947
-1868
regression/data/spherical-surface-test.data
regression/data/spherical-surface-test.data
+38
-41
regression/data/split-surface-test.data
regression/data/split-surface-test.data
+17
-17
regression/data/step-reader-test.data
regression/data/step-reader-test.data
+2737
-2860
regression/data/step-writer-test.data
regression/data/step-writer-test.data
+53
-53
regression/data/subtracted-solid-test.data
regression/data/subtracted-solid-test.data
+223
-226
regression/data/surface-knot-reduction-test.data
regression/data/surface-knot-reduction-test.data
+17
-25
regression/data/swept-solid-test.data
regression/data/swept-solid-test.data
+1353
-1357
regression/data/transformed-curve-test.data
regression/data/transformed-curve-test.data
+8
-8
regression/data/transformed-solid-test.data
regression/data/transformed-solid-test.data
+26
-30
regression/data/transformed-surface-test.data
regression/data/transformed-surface-test.data
+12
-12
regression/data/trimmed-curve-test.data
regression/data/trimmed-curve-test.data
+9
-9
regression/data/trimmed-surface-test.data
regression/data/trimmed-surface-test.data
+688
-688
regression/data/united-solid-test.data
regression/data/united-solid-test.data
+246
-259
regression/regression.asd
regression/regression.asd
+71
-118
regression/source/iges-writer.lisp
regression/source/iges-writer.lisp
+145
-118
surf/source/boolean.lisp
surf/source/boolean.lisp
+1
-1
surf/surf.asd
surf/surf.asd
+67
-117
No files found.
apps/ta2/ta2.asd
View file @
5efb5056
;;;; -*- coding: utf-8 -*-
(
asdf:defsystem
#:ta2
:description
"The Gendl™ (legacy) Testing and Tracking Utility, version 2 (using Ajax but pre-gdlAjax, and no JQuery or CSS)"
:author
"Genworks International"
:license
"Affero Gnu Public License (http://www.gnu.org/licenses/)"
:serial
t
:version
"20140625"
:depends-on
(
:gwl-graphics
)
#-
asdf-unicode
:defsystem-depends-on
#-
asdf-unicode
(
:asdf-encodings
)
#+
asdf-encodings
:encoding
#+
asdf-encodings
:utf-8
:components
((
:file
"source/package"
)
(
:file
"source/parameters"
)
(
:file
"source/javascript"
)
(
:file
"source/action-object"
)
(
:file
"source/ajax"
)
(
:file
"source/assembly"
)
(
:file
"source/click-mode"
)
(
:file
"source/inspector"
)
(
:file
"source/object-tree"
)
(
:file
"source/part-type-form"
)
(
:file
"source/publish"
)
(
:file
"source/viewport"
)))
;;;; -*- coding: utf-8 -*-
(
asdf:defsystem
#:ta2
:description
"The Gendl\" (legacy) Testing and Tracking Utility, version 2 (using Ajax but pre-gdlAjax, and no JQuery or CSS)"
:author
"John McCarthy"
:license
"Affero Gnu Public License (http://www.gnu.org/licenses/)"
:serial
t
:version
"20140904"
:depends-on
(
:gwl-graphics
)
#-
asdf-unicode
:defsystem-depends-on
#-
asdf-unicode
(
:asdf-encodings
)
#+
asdf-encodings
:encoding
#+
asdf-encodings
:utf-8
:components
((
:file
"source/package"
)
(
:file
"source/parameters"
)
(
:file
"source/javascript"
)
(
:file
"source/action-object"
)
(
:file
"source/ajax"
)
(
:file
"source/assembly"
)
(
:file
"source/click-mode"
)
(
:file
"source/inspector"
)
(
:file
"source/object-tree"
)
(
:file
"source/part-type-form"
)
(
:file
"source/publish"
)
(
:file
"source/viewport"
)))
apps/tasty/source/inspector.lisp
View file @
5efb5056
This diff is collapsed.
Click to expand it.
apps/tasty/tasty.asd
View file @
5efb5056
;;;; -*- coding: utf-8 -*-
(
asdf:defsystem
#:tasty
:description
"The Gendl™ Web-based Development Environment (tasty)"
:author
"Genworks International"
:license
"Affero Gnu Public License (http://www.gnu.org/licenses/)"
:serial
t
:version
"20140625"
:depends-on
(
:tree
:gwl-graphics
)
#-
asdf-unicode
:defsystem-depends-on
#-
asdf-unicode
(
:asdf-encodings
)
#+
asdf-encodings
:encoding
#+
asdf-encodings
:utf-8
:components
((
:file
"source/package"
)
(
:file
"source/parameters"
)
(
:file
"source/assembly"
)
(
:file
"source/initialize"
)
(
:file
"source/inspector"
)
(
:file
"source/menu"
)
(
:file
"source/new-inspector"
)
(
:file
"source/newer-inspector"
)
(
:file
"source/part-type-form"
)
(
:file
"source/publish"
)
(
:file
"source/status-object"
)
(
:file
"source/test-part"
)
(
:file
"source/test-part2"
)
(
:file
"source/two-viewports"
)
(
:file
"source/viewport"
)
(
:file
"source/zzinit"
)))
;;;; -*- coding: utf-8 -*-
(
asdf:defsystem
#:tasty
:description
"The Gendl\" Web-based Development Environment (tasty)"
:author
"John McCarthy"
:license
"Affero Gnu Public License (http://www.gnu.org/licenses/)"
:serial
t
:version
"20140904"
:depends-on
(
:tree
:gwl-graphics
)
#-
asdf-unicode
:defsystem-depends-on
#-
asdf-unicode
(
:asdf-encodings
)
#+
asdf-encodings
:encoding
#+
asdf-encodings
:utf-8
:components
((
:file
"source/package"
)
(
:file
"source/parameters"
)
(
:file
"source/assembly"
)
(
:file
"source/initialize"
)
(
:file
"source/inspector"
)
(
:file
"source/menu"
)
(
:file
"source/new-inspector"
)
(
:file
"source/newer-inspector"
)
(
:file
"source/part-type-form"
)
(
:file
"source/publish"
)
(
:file
"source/status-object"
)
(
:file
"source/test-part"
)
(
:file
"source/test-part2"
)
(
:file
"source/two-viewports"
)
(
:file
"source/viewport"
)
(
:file
"source/zzinit"
)))
apps/translators/translators.asd
View file @
5efb5056
;;;; -*- coding: utf-8 -*-
(
asdf:defsystem
#:translators
:description
"The Gendl™ Translators to/from XML and potentially other high-level KBE and Knowledge formats"
:author
"Genworks International"
:license
"Affero Gnu Public License (http://www.gnu.org/licenses/)"
:serial
t
:version
"20140625"
:depends-on
(
:gwl
)
#-
asdf-unicode
:defsystem-depends-on
#-
asdf-unicode
(
:asdf-encodings
)
#+
asdf-encodings
:encoding
#+
asdf-encodings
:utf-8
:components
((
:file
"xml/source/package"
)
(
:file
"xml/source/genworks"
)
(
:file
"xml/source/definition-tree"
)
(
:file
"xml/source/gdl2xml"
)
(
:file
"xml/source/xml2gdl"
)))
;;;; -*- coding: utf-8 -*-
(
asdf:defsystem
#:translators
:description
"The Gendl\" Translators to/from XML and potentially other high-level KBE and Knowledge formats"
:author
"John McCarthy"
:license
"Affero Gnu Public License (http://www.gnu.org/licenses/)"
:serial
t
:version
"20140904"
:depends-on
(
:gwl
)
#-
asdf-unicode
:defsystem-depends-on
#-
asdf-unicode
(
:asdf-encodings
)
#+
asdf-encodings
:encoding
#+
asdf-encodings
:utf-8
:components
((
:file
"xml/source/package"
)
(
:file
"xml/source/genworks"
)
(
:file
"xml/source/definition-tree"
)
(
:file
"xml/source/gdl2xml"
)
(
:file
"xml/source/xml2gdl"
)))
apps/tree/tree.asd
View file @
5efb5056
;;;; -*- coding: utf-8 -*-
(
asdf:defsystem
#:tree
:description
"The Gendl™ Tree component used by Tasty and potentially as a UI component on its own"
:author
"Genworks International"
:license
"Affero Gnu Public License (http://www.gnu.org/licenses/)"
:serial
t
:version
"20140625"
:depends-on
(
:gwl-graphics
)
#-
asdf-unicode
:defsystem-depends-on
#-
asdf-unicode
(
:asdf-encodings
)
#+
asdf-encodings
:encoding
#+
asdf-encodings
:utf-8
:components
((
:file
"source/package"
)
(
:file
"source/parameters"
)
(
:file
"source/ajax"
)
(
:file
"source/assembly"
)
(
:file
"source/newertree"
)))
;;;; -*- coding: utf-8 -*-
(
asdf:defsystem
#:tree
:description
"The Gendl\" Tree component used by Tasty and potentially as a UI component on its own"
:author
"John McCarthy"
:license
"Affero Gnu Public License (http://www.gnu.org/licenses/)"
:serial
t
:version
"20140904"
:depends-on
(
:gwl-graphics
)
#-
asdf-unicode
:defsystem-depends-on
#-
asdf-unicode
(
:asdf-encodings
)
#+
asdf-encodings
:encoding
#+
asdf-encodings
:utf-8
:components
((
:file
"source/package"
)
(
:file
"source/parameters"
)
(
:file
"source/ajax"
)
(
:file
"source/assembly"
)
(
:file
"source/newertree"
)))
apps/yadd/yadd.asd
View file @
5efb5056
;;;; -*- coding: utf-8 -*-
(
asdf:defsystem
#:yadd
:description
"The Gendl™ Yet Another Definition Documenter (yadd)"
:author
"Genworks International"
:license
"Affero Gnu Public License (http://www.gnu.org/licenses/)"
:serial
t
:version
"20140625"
:depends-on
(
:gwl-graphics
#-
allegro
:cl-html-parse
)
#-
asdf-unicode
:defsystem-depends-on
#-
asdf-unicode
(
:asdf-encodings
)
#+
asdf-encodings
:encoding
#+
asdf-encodings
:utf-8
:components
((
:file
"source/package"
)
(
:file
"source/genworks"
)
(
:file
"source/parameters"
)
(
:file
"source/mixins"
)
(
:file
"source/define-object-documentation"
)
(
:file
"source/assembly"
)
(
:file
"source/ass"
)
(
:file
"source/format-documentation"
)
(
:file
"source/function-documentation"
)
(
:file
"source/initialize"
)
(
:file
"source/publish"
)
(
:file
"source/test-part"
)
(
:file
"source/variable-documentation"
)
(
:file
"source/zzinit"
)))
;;;; -*- coding: utf-8 -*-
(
asdf:defsystem
#:yadd
:description
"The Gendl\" Yet Another Definition Documenter (yadd)"
:author
"John McCarthy"
:license
"Affero Gnu Public License (http://www.gnu.org/licenses/)"
:serial
t
:version
"20140904"
:depends-on
(
:gwl-graphics
#-
allegro
:cl-html-parse
)
#-
asdf-unicode
:defsystem-depends-on
#-
asdf-unicode
(
:asdf-encodings
)
#+
asdf-encodings
:encoding
#+
asdf-encodings
:utf-8
:components
((
:file
"source/package"
)
(
:file
"source/genworks"
)
(
:file
"source/parameters"
)
(
:file
"source/mixins"
)
(
:file
"source/define-object-documentation"
)
(
:file
"source/assembly"
)
(
:file
"source/ass"
)
(
:file
"source/format-documentation"
)
(
:file
"source/function-documentation"
)
(
:file
"source/initialize"
)
(
:file
"source/publish"
)
(
:file
"source/test-part"
)
(
:file
"source/variable-documentation"
)
(
:file
"source/zzinit"
)))
base/base.asd
View file @
5efb5056
;;;; -*- coding: utf-8 -*-
(
asdf:defsystem
#:base
:description
"The Gendl™ Base Core Kernel Engine"
:author
"Genworks International"
:license
"Affero Gnu Public License (http://www.gnu.org/licenses/)"
:serial
t
:version
"20140625"
:depends-on
nil
#-
asdf-unicode
:defsystem-depends-on
#-
asdf-unicode
(
:asdf-encodings
)
#+
asdf-encodings
:encoding
#+
asdf-encodings
:utf-8
:components
((
:file
"source/package"
)
(
:file
"source/genworks"
)
(
:file
"source/presets"
)
(
:file
"source/parameters"
)
(
:file
"source/metaclasses"
)
(
:file
"source/utilities"
)
(
:file
"source/start"
)
(
:file
"expanders/source/inputs"
)
(
:file
"expanders/source/computed-slots"
)
(
:file
"expanders/source/functions"
)
(
:file
"expanders/source/methods"
)
(
:file
"expanders/source/objects"
)
(
:file
"macros/source/reference"
)
(
:file
"macros/source/message-utils"
)
(
:file
"macros/source/define-object"
)
(
:file
"macros/source/defaulting"
)
(
:file
"macros/source/define-format"
)
(
:file
"rest/source/parameters"
)
(
:file
"rest/source/quantification"
)
(
:file
"rest/source/aggregate"
)
(
:file
"rest/source/utilities"
)
(
:file
"rest/source/null-part"
)
(
:file
"rest/source/vanilla-mixin"
)
(
:file
"rest/source/base-rule-object"
)
(
:file
"rest/source/bodies"
)
(
:file
"rest/source/ignore-errors-with-backtrace"
)
(
:file
"rest/source/init"
)
(
:file
"rest/source/make-part"
)
(
:file
"rest/source/sequence"
)
(
:file
"zzinit/source/initialize"
)
(
:file
"zzinit/source/zzinit"
)))
;;;; -*- coding: utf-8 -*-
(
asdf:defsystem
#:base
:description
"The Gendl\" Base Core Kernel Engine"
:author
"John McCarthy"
:license
"Affero Gnu Public License (http://www.gnu.org/licenses/)"
:serial
t
:version
"20140904"
:depends-on
nil
#-
asdf-unicode
:defsystem-depends-on
#-
asdf-unicode
(
:asdf-encodings
)
#+
asdf-encodings
:encoding
#+
asdf-encodings
:utf-8
:components
((
:file
"source/package"
)
(
:file
"source/genworks"
)
(
:file
"source/presets"
)
(
:file
"source/parameters"
)
(
:file
"source/metaclasses"
)
(
:file
"source/utilities"
)
(
:file
"source/start"
)
(
:file
"expanders/source/inputs"
)
(
:file
"expanders/source/computed-slots"
)
(
:file
"expanders/source/functions"
)
(
:file
"expanders/source/methods"
)
(
:file
"expanders/source/objects"
)
(
:file
"macros/source/reference"
)
(
:file
"macros/source/message-utils"
)
(
:file
"macros/source/define-object"
)
(
:file
"macros/source/defaulting"
)
(
:file
"macros/source/define-format"
)
(
:file
"rest/source/parameters"
)
(
:file
"rest/source/quantification"
)
(
:file
"rest/source/aggregate"
)
(
:file
"rest/source/utilities"
)
(
:file
"rest/source/null-part"
)
(
:file
"rest/source/vanilla-mixin"
)
(
:file
"rest/source/base-rule-object"
)
(
:file
"rest/source/bodies"
)
(
:file
"rest/source/ignore-errors-with-backtrace"
)
(
:file
"rest/source/init"
)
(
:file
"rest/source/make-part"
)
(
:file
"rest/source/sequence"
)
(
:file
"zzinit/source/initialize"
)
(
:file
"zzinit/source/zzinit"
)))
base/expanders/source/inputs.lisp
View file @
5efb5056
;;
;; Copyright 2002-2011 Genworks International
;;
;; This source file is part of the General-purpose Declarative
;; Language project (GDL).
;;
;; This source file contains free software: you can redistribute it
;; and/or modify it under the terms of the GNU Affero General Public
;; License as published by the Free Software Foundation, either
;; version 3 of the License, or (at your option) any later version.
;;
;; This source file is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
;; Affero General Public License for more details.
;;
;; You should have received a copy of the GNU Affero General Public
;; License along with this source file. If not, see
;; <http://www.gnu.org/licenses/>.
;;
(
in-package
:gdl
)
(
defun
not-handled
(
object
message
)
(
if
*error-on-not-handled?*
(
not-handled-error
object
message
)
'gdl-rule:%not-handled%
))
(
defun
input-slots-generics
(
input-slots
)
(
let
((
input-slot-syms
(
mapcar
#'
(
lambda
(
input
)
(
glisp:intern
(
if
(
symbolp
(
first
input
))
(
first
input
)
(
second
input
))
:gdl-inputs
))
input-slots
)))
`
(
eval-when
(
:compile-toplevel
:load-toplevel
:execute
)
,@
(
append
(
mapcar
#'
(
lambda
(
input-sym
)
`
(
unless
(
fboundp
',input-sym
)
(
defgeneric
,
input-sym
(
,
parent-arg
,
val-arg
,
self-arg
))))
input-slot-syms
)))))
(
defun
input-methods
(
name
attr-sym
keys
expressions
special-keys
)
(
let
((
input
(
gensym
)))
(
let
((
remove-defunct-expressions
(
list
`
(
dolist
(
,
input
(
set-difference
(
getf
(
child-inputs
(
find-class
',name
))
',attr-sym
)
',keys
))
(
let
((
method
(
find-method
(
symbol-function
(
glisp:intern
(
symbol-name
,
input
)
:gdl-inputs
))
nil
(
list
(
find-class
',name
)
(
glisp:eql-specializer
',attr-sym
)
(
find-class
t
))
nil
)))
(
when
method
(
remove-method
(
symbol-function
(
glisp:intern
(
symbol-name
,
input
)
:gdl-inputs
))
method
)
(
format
t
"~%Removing object input ~a for object ~a of object definition ~s~%"
,
input
',attr-sym
',name
))))
`
(
setf
(
getf
(
child-inputs
(
find-class
',name
))
',attr-sym
)
(
set-difference
',keys
',special-keys
)))))
(
append
remove-defunct-expressions
(
remove
nil
(
mapcan
#'
(
lambda
(
input
expr
)
(
when
(
not
(
member
input
special-keys
))
(
let
((
input-sym
(
glisp:intern
(
symbol-name
input
)
:gdl-acc
)))
(
list
`
(
defmethod
,
(
glisp:intern
(
symbol-name
input-sym
)
:gdl-inputs
)
((
self
,
name
)
(
,
part-arg
(
eql
',attr-sym
))
(
child
t
))
(
let
((
*error-on-not-handled?*
t
))
,
expr
))))))
keys
expressions
))))))
(
defun
input-slots-section
(
name
input-slots
)
(
mapcan
#'
(
lambda
(
input
)
(
let*
((
attr-sym
(
glisp:intern
(
symbol-name
(
if
(
symbolp
input
)
input
(
message-symbol
input
)))
:gdl-acc
))
(
attr-remarks
(
when
(
consp
input
)
(
message-strings
input
))))
(
remove
nil
(
list
(
when
(
and
*compile-documentation-database?*
attr-remarks
)
`
(
when
*load-documentation-database?*
(
let
((
ht
(
or
(
message-documentation
(
find-class
',name
))
(
setf
(
message-documentation
(
find-class
',name
))
(
make-hash-table
)))))
(
setf
(
gethash
(
make-keyword
',attr-sym
)
ht
)
,
attr-remarks
))))
(
when
(
and
*compile-for-dgdl?*
(
not
(
eql
attr-sym
'gdl-acc::type
)))
`
(
unless
(
find-method
(
symbol-function
',
(
glisp:intern
attr-sym
:gdl-inputs
))
nil
(
list
(
find-class
'gdl-remote
)
t
(
find-class
'gdl-basis
))
nil
)
(
defmethod
,
(
glisp:intern
attr-sym
:gdl-inputs
)
((
,
parent-arg
gdl-remote
)
,
part-arg
(
,
self-arg
gdl-basis
))
(
the-object
,
parent-arg
(
fetch-input
,
(
make-keyword
attr-sym
)
,
part-arg
,
self-arg
)))))
`
(
defmethod
,
(
glisp:intern
(
symbol-name
attr-sym
)
:gdl-slots
)
((
self
,
name
)
&rest
,
args-arg
)
(
declare
(
ignore
,
args-arg
))
(
let
((
*error-on-not-handled?*
t
))
(
with-dependency-tracking
(
,
attr-sym
self
)
(
let
((
,
parent-arg
(
the-object
self
%parent%
)))
(
let
((
,
val-arg
(
if
,
parent-arg
(
let
(
*error-on-not-handled?*
)
(
,
(
glisp:intern
(
symbol-name
attr-sym
)
:gdl-inputs
)
,
parent-arg
(
the-object
self
%name%
)
self
))
'gdl-rule:%not-handled%
)))
(
cond
((
not
(
eql
,
val-arg
'gdl-rule:%not-handled%
))
,
val-arg
)
((
and
,
parent-arg
(
fboundp
',
(
glisp:intern
(
symbol-name
attr-sym
)
:gdl-trickle-downs
)))
(
if
(
member
,
(
make-keyword
attr-sym
)
(
the-object
,
parent-arg
:%trickle-down-slots%
))
(
,
(
glisp:intern
(
symbol-name
attr-sym
)
:gdl-slots
)
,
parent-arg
)
(
funcall
(
symbol-function
',
(
glisp:intern
(
symbol-name
attr-sym
)
:gdl-trickle-downs
))
,
parent-arg
)))
(
t
(
not-handled
self
,
(
make-keyword
attr-sym
)))))))))))))
input-slots
))
(
defun
optional-input-slots-section
(
name
input-slots
&optional
(
defaulted?
nil
))
(
mapcan
#'
(
lambda
(
input
)
(
let
((
attr-remarks
(
message-strings
input
))
(
attr-sym
(
glisp:intern
(
symbol-name
(
message-symbol
input
))
:gdl-acc
))
(
attr-expr
(
message-source-code
input
)))
(
remove
nil
(
list
(
when
(
and
*compile-documentation-database?*
attr-remarks
)
`
(
when
*load-documentation-database?*
;;
;; FLAG -- make the hash table the initform rather than this clumsy "or" conditional.
;;
(
let
((
ht
(
or
(
message-documentation
(
find-class
',name
))
(
setf
(
message-documentation
(
find-class
',name
))
(
make-hash-table
)))))
(
setf
(
gethash
(
make-keyword
',attr-sym
)
ht
)
,
attr-remarks
))))
(
when
*compile-source-code-database?*
`
(
when
*load-source-code-database?*
;;
;; FLAG -- make the hash table the initform rather than this clumsy "or" conditional.
;;
(
let
((
ht
(
or
(
message-source
(
find-class
',name
))
(
setf
(
message-source
(
find-class
',name
))
(
make-hash-table
)))))
(
setf
(
gethash
(
make-keyword
',attr-sym
)
ht
)
',attr-expr
))))
`
(
eval-when
(
:compile-toplevel
:load-toplevel
:execute
)
(
glisp:begin-redefinitions-ok
))
(
when
(
and
*compile-for-dgdl?*
(
not
(
string-equal
(
symbol-name
name
)
"remote-object"
)
))
`
(
when
(
or
(
not
(
fboundp
',
(
glisp:intern
attr-sym
:gdl-slots
)))
(
not
(
find-method
(
symbol-function
',
(
glisp:intern
attr-sym
:gdl-slots
))
nil
(
list
(
find-class
'gdl-remote
))
nil
)))
(
defmethod
,
(
glisp:intern
attr-sym
:gdl-slots
)
((
self
gdl-remote
)
&rest
,
args-arg
)
(
the
(
send
(
:apply
(
cons
,
(
make-keyword
(
symbol-name
attr-sym
))
,
args-arg
)))))))
(
when
*compile-for-dgdl?*
`
(
defmethod
,
(
glisp:intern
(
symbol-name
attr-sym
)
:gdl-inputs
)
((
,
parent-arg
gdl-remote
)
,
part-arg
(
,
self-arg
gdl-basis
))
(
the-object
,
parent-arg
(
fetch-input
,
(
make-keyword
attr-sym
)
,
part-arg
,
self-arg
))))
`
(
eval-when
(
:compile-toplevel
:load-toplevel
:execute
)
(
glisp:end-redefinitions-ok
))
`
(
defmethod
,
(
glisp:intern
(
symbol-name
attr-sym
)
:gdl-slots
)
((
self
,
name
)
&rest
,
args-arg
)
(
declare
(
ignore
,
args-arg
))
(
let
((
*error-on-not-handled?*
t
))
(
with-dependency-tracking
(
,
attr-sym
)
(
let
((
,
parent-arg
(
the
:%parent%
)))
(
let
((
,
val-arg
(
if
,
parent-arg
(
let
(
*error-on-not-handled?*
)
(
,
(
glisp:intern
(
symbol-name
attr-sym
)
:gdl-inputs
)
,
parent-arg
(
the
:%name%
)
self
))
'gdl-rule:%not-handled%
)))
,
(
if
defaulted?
`
(
if
(
eql
,
val-arg
'gdl-rule:%not-handled%
)
(
let
((
,
val-arg
(
if
,
parent-arg
(
let
(
*error-on-not-handled?*
)
(
if
(
fboundp
',
(
glisp:intern
(
symbol-name
attr-sym
)
:gdl-trickle-downs
))
(
,
(
glisp:intern
(
symbol-name
attr-sym
)
:gdl-trickle-downs
)
self
)
'gdl-rule:%not-handled%
))
,
val-arg
)))
(
if
(
eql
,
val-arg
'gdl-rule:%not-handled%
)
,
attr-expr
,
val-arg
))
,
val-arg
)
`
(
if
(
eql
,
val-arg
'gdl-rule:%not-handled%
)
,
attr-expr
,
val-arg
)))))))))))
input-slots
))
;;
;; Copyright 2002-2011 Genworks International
;;
;; This source file is part of the General-purpose Declarative
;; Language project (GDL).
;;
;; This source file contains free software: you can redistribute it
;; and/or modify it under the terms of the GNU Affero General Public
;; License as published by the Free Software Foundation, either
;; version 3 of the License, or (at your option) any later version.
;;
;; This source file is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
;; Affero General Public License for more details.
;;
;; You should have received a copy of the GNU Affero General Public
;; License along with this source file. If not, see
;; <http://www.gnu.org/licenses/>.
;;
(
in-package
:gdl
)
(
defun
not-handled
(
object
message
)
(
if
*error-on-not-handled?*
(
not-handled-error
object
message
)
'gdl-rule:%not-handled%
))
(
defun
input-slots-generics
(
input-slots
)
(
let
((
input-slot-syms
(
mapcar
#'
(
lambda
(
input
)
(
glisp:intern
(
if
(
symbolp
(
first
input
))
(
first
input
)
(
second
input
))
:gdl-inputs
))
input-slots
)))
`
(
eval-when
(
:compile-toplevel
:load-toplevel
:execute
)
,@
(
append
(
mapcar
#'
(
lambda
(
input-sym
)
`
(
unless
(
fboundp
',input-sym
)
(
defgeneric
,
input-sym
(
,
parent-arg
,
val-arg
,
self-arg
))))
input-slot-syms
)))))
(
defun
input-methods
(
name
attr-sym
keys
expressions
special-keys
)
(
let
((
input
(
gensym
)))
(
let
((
remove-defunct-expressions
(
list
`
(
dolist
(
,
input
(
set-difference
(
getf
(
child-inputs
(
find-class
',name
))
',attr-sym
)
',keys
))
(
let
((
method
(
find-method
(
symbol-function
(
glisp:intern
(
symbol-name
,
input
)
:gdl-inputs
))
nil
(
list
(
find-class
',name
)
(
glisp:eql-specializer
',attr-sym
)
(
find-class
t
))
nil
)))
(
when
method
(
remove-method
(
symbol-function
(
glisp:intern
(
symbol-name
,
input
)
:gdl-inputs
))
method
)
(
format
t
"~%Removing object input ~a for object ~a of object definition ~s~%"
,
input
',attr-sym
',name
))))
`
(
setf
(
getf
(
child-inputs
(
find-class
',name
))
',attr-sym
)
(
set-difference
',keys
',special-keys
)))))
(
append
remove-defunct-expressions
(
remove
nil
(
mapcan
#'
(
lambda
(
input
expr
)
(
when
(
not
(
member
input
special-keys
))
(
let
((
input-sym
(
glisp:intern
(
symbol-name
input
)
:gdl-acc
)))
(
list
`
(
defmethod
,
(
glisp:intern
(
symbol-name
input-sym
)
:gdl-inputs
)
((
self
,
name
)
(
,
part-arg
(
eql
',attr-sym
))
(
child
t
))
(
let
((
*error-on-not-handled?*
t
))
,
expr
))))))
keys
expressions
))))))
(
defun
input-slots-section
(
name
input-slots
)
(
mapcan
#'
(
lambda
(
input
)
(
let*
((
attr-sym
(
glisp:intern
(
symbol-name
(
if
(
symbolp
input
)
input
(
message-symbol
input
)))
:gdl-acc
))
(
attr-remarks
(
when
(
consp
input
)
(
message-strings
input
))))
(
remove
nil
(
list