Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Diff of /sml/trunk/NOTES/HISTORY
ViewVC logotype

Diff of /sml/trunk/NOTES/HISTORY

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1630, Fri Sep 24 21:05:04 2004 UTC revision 1638, Wed Sep 29 19:07:58 2004 UTC
# Line 14  Line 14 
14    
15  ----------------------------------------------------------------------  ----------------------------------------------------------------------
16  Name: Matthias Blume (blume (at) tti - c (dot) org)  Name: Matthias Blume (blume (at) tti - c (dot) org)
17    Date: 2004/09/29 14:00:00 CDT
18    Tag: blume-20040929-autoversion
19    Description:
20    
21    Implemented some CM magic to have
22        file src/compiler/TopLevel/main/version.sml
23    generated automagically.
24    The version is taken from two files: config/version and config/release.
25    The first is expected to contain a two-part version number such as 110.49.
26    The second should contain a single number, but it may be missing.
27    
28    If the environment variable VERSIONTOOL_BUMP_RELEASE is defined at the
29    time the version tool is loaded (which is the first time you say CMB.make),
30    then the tool will increment the value stored in config/release every
31    time CMB.make is invoked.
32    
33    The binfile format is now insensitive to anything beyond the first
34    two components of a version number, so bumping the release does not render
35    binfiles incompatible.  Auto-bumping can be used to keep track of versions
36    during development without invalidating existing binfiles.
37    
38    In any case, every CMB.make updates the date information in version.sml.
39    (This is the date that is printed in the banner.)
40    
41    ----------------------------------------------------------------------
42    Name: Matthias Blume (blume (at) tti - c (dot) org)
43    Date: 2004/09/28 10:53:00 CDT
44    Tag: blume-20040928-controls
45    Description:
46    
47    Some cleanup of the controls code.
48    
49    ----------------------------------------------------------------------
50    Name: Matthias Blume (blume (at) tti - c (dot) org)
51    Date: 2004/09/27 22:08:00 CDT
52    Tag: blume-20040927-controls
53    Description:
54    
55    Added two pieces of functionality to the Controls interface:
56    
57    1.   val save'restore: 'a control -> unit -> unit
58    
59       grabs the current value of the control in stage 1 and restores it
60       in stage 2.
61    
62    2.   val set' : 'a control * 'a -> unit -> unit
63    
64       stores the given value into the control in stage 2 (i.e., delayed)
65       but does all error checking in stage 1.
66       (This is for string controls that need to do parse their argument --
67        something that might fail.  In some cases, notably in CM, one
68        already knows the intended argument but wants to delay the actual
69        assignment until a time when error recovery would be more difficult.)
70    
71    Changed the handling of controls in tool arguments to classes "sml" and
72    "lazysml":
73       - use Controls.save'restore as a more robust way of restoring the
74         old value (in particular: without having to re-parse the string)
75       - use controls to handle the "overload" keyword in the init group
76         (I believe this change actually fixes a long-standing obscure bug.)
77    
78    ----------------------------------------------------------------------
79    Name: Matthias Blume (blume (at) tti - c (dot) org)
80    Date: 2004/09/27 17:00:00 CDT
81    Tag: blume-20040927-lazysml
82    Description:
83    
84    Added a new tool class called "lazysml" to CM's tool chest.  The only
85    difference to "sml" is that compilation is done with Control.lazysml
86    set to true.  A source of class "lazysml" is automatically recognized
87    by a file name suffix of ".lml".
88    
89    In addition to the above feature, the original class "sml" now also
90    supports a tool argument "lazy" which has the same effect.  As a
91    result, the following three lines are equivalent:
92    
93        foo.sml : lazysml
94        foo.sml : sml (lazy)
95        foo.sml (lazy)
96    
97    The setting goes into effect both during parsing and during
98    compilation.  The original setting is restored right after parsing and
99    after compilation, respectively.
100    
101    In addition to all the above, there is also a general mechanism to set
102    ANY of the "controls" that are available at the command line via
103    "-C..." on a per-sml-file basis.  The same rules that apply for "lazy"
104    apply as well. (In fact, "lazy" is implemented as a special case of
105    the general mechanism.)
106    
107    The .cm file syntax uses a new keyword tool argument called "with".
108    There are several ways of indicating the desired settings:
109    
110        foo.sml (with:parser.quotations=true)
111        foo.sml (with:(name:parser.quotations value:true))
112        foo.sml (with:(name:name1 value:value1 name:name2 value:value2 ...))
113        foo.sml (with:(name1=value1 name2=value2 ...))
114        foo.sml (with:(name1=value1 name:name2 value:value2 name3=value3 ...))
115    
116        etc.
117    
118    Another possible abbreviation is to leave out the =v or value:v part
119    if the name refers to a boolean control (in which case the value is
120    taken to be true).  Thus, one could get lazy sml also by saying:
121    
122        foo.sml (with:parser.lazy-keyword=true)
123        foo.sml (with:parser.lazy-keyword)
124        foo.sml (with:(name:parser.lazy-keyword value:true))
125        foo.sml (with:(name:parser.lazy-keyword))
126    
127    ----------------------------------------------------------------------
128    Name: Matthias Blume (blume (at) tti - c (dot) org)
129    Date: 2004/09/24 16:22:00 CDT
130    Tag: blume-20040924-ppc-long-branch
131    Description:
132    
133    Turned message about "emiting long form of branch" off by default.
134    Added a control flag to turn it back on when desired.
135    
136    ----------------------------------------------------------------------
137    Name: Matthias Blume (blume (at) tti - c (dot) org)
138  Date: 2004/09/24 16:05:00 CDT  Date: 2004/09/24 16:05:00 CDT
139  Tag: blume-20040924-rounding  Tag: blume-20040924-rounding
140  Description:  Description:

Legend:
Removed from v.1630  
changed lines
  Added in v.1638

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0