]> gitweb.factorcode.org Git - factor.git/commitdiff
Docs: more docs for vocabs in core/
authorBjörn Lindqvist <bjourne@gmail.com>
Sat, 5 Dec 2015 15:34:46 +0000 (16:34 +0100)
committerBjörn Lindqvist <bjourne@gmail.com>
Sat, 5 Dec 2015 15:34:46 +0000 (16:34 +0100)
core/alien/alien-docs.factor
core/compiler/units/units-docs.factor
core/definitions/definitions-docs.factor
core/io/encodings/encodings-docs.factor
core/kernel/kernel-docs.factor
core/words/words-docs.factor

index 29a3d0e35f0f2e1d0be458620c9b0345488d96c5..e0b507509ce4c58559471c24569d5d85d16b0867 100644 (file)
@@ -3,6 +3,10 @@ alien.syntax byte-arrays cpu.x86 eval help.markup help.syntax io
 io.backend kernel math quotations sequences system ;
 IN: alien
 
+HELP: callee-cleanup?
+{ $values { "abi" abi } { "?" boolean } }
+{ $description { $link t } " if the calling convention is callee cleanup." } ;
+
 HELP: cdecl
 { $description "This symbol is passed as the " { $snippet "abi" } " argument to " { $link alien-indirect } ", " { $link alien-callback } ", " { $link alien-assembly } ", and " { $link add-library } " to indicate that the standard C calling convention should be used, where the caller cleans up the stack frame after calling the function. This symbol only has meaning on 32-bit x86 platforms." } ;
 
index a6489153d4fe84111018bb7bef94192fbe90c763..48bce465298bc4f8cccdf9e235bdef5dc4168ad4 100644 (file)
@@ -1,5 +1,6 @@
-USING: definitions help.markup help.syntax kernel parser
-quotations sequences source-files stack-checker.errors words ;
+USING: compiler.units.private definitions help.markup help.syntax kernel
+kernel.private parser quotations sequences source-files stack-checker.errors
+words ;
 IN: compiler.units
 
 ARTICLE: "compilation-units-internals" "Compilation units internals"
@@ -40,6 +41,13 @@ $nl
 
 ABOUT: "compilation-units"
 
+HELP: bump-effect-counter?
+{ $values { "?" boolean } }
+{ $description "Whether the " { $link REDEFINITION-COUNTER } " should be increased." } ;
+
+HELP: old-definitions
+{ $var-description "Stores a pair of sets where the members form the set of definitions which were defined by " { $link current-source-file } " the most recent time it was loaded." } ;
+
 HELP: redefine-error
 { $values { "definition" "a definition specifier" } }
 { $description "Throws a " { $link redefine-error } "." }
@@ -49,9 +57,6 @@ HELP: remember-definition
 { $values { "definition" "a definition specifier" } { "loc" "a " { $snippet "{ path line# }" } " pair" } }
 { $description "Saves the location of a definition and associates this definition with the current source file." } ;
 
-HELP: old-definitions
-{ $var-description "Stores a pair of sets where the members form the set of definitions which were defined by " { $link current-source-file } " the most recent time it was loaded." } ;
-
 HELP: new-definitions
 { $var-description "Stores a pair of sets where the members form the set of definitions which were defined so far by the current parsing of " { $link current-source-file } "." } ;
 
index 3da59b0e1c1ff261b6b7c577147643060d36e4b8..dbf7c81ea9de74bce0d294a9e5eb8d894d19c814 100644 (file)
@@ -73,9 +73,8 @@ $nl
 
 ABOUT: "definitions"
 
-HELP: where
-{ $values { "defspec" "a definition specifier" } { "loc" "a " { $snippet "{ path line# }" } " pair" } }
-{ $description "Outputs the location of a definition. If the location is not known, will output " { $link f } "." } ;
+HELP: changed-effects
+{ $var-description "A set that contains all words whose stack effects have changed in the compilation unit." } ;
 
 HELP: set-where
 { $values { "loc" "a " { $snippet "{ path line# }" } " pair" } { "defspec" "a definition specifier" } }
@@ -95,3 +94,7 @@ HELP: forget-all
 HELP: outdated-generics
 { $var-description "A " { $link hash-set } " where newly defined generic words are kept until they are being remade." }
 { $see-also remake-generic remake-generics } ;
+
+HELP: where
+{ $values { "defspec" "a definition specifier" } { "loc" "a " { $snippet "{ path line# }" } " pair" } }
+{ $description "Outputs the location of a definition. If the location is not known, will output " { $link f } "." } ;
index 503d42e528a718d43d2da85043b501bcee9b3cf6..8009775f53cb411b7842acb2381673b9c01284f3 100644 (file)
@@ -1,4 +1,4 @@
-USING: help.markup help.syntax io quotations math ;
+USING: help.markup help.syntax io quotations math sequences ;
 IN: io.encodings
 
 HELP: <encoder>
@@ -18,9 +18,17 @@ $low-level-note ;
 HELP: decode-char
 { $values { "stream" "an underlying input stream" }
     { "encoding" "An encoding descriptor tuple" } { "char/f" "a code point or " { $link f } } }
-{ $contract "Reads a single code point from the underlying stream, interpreting it by the encoding. Returns " { $link f } " if the stream is reached." }
+{ $contract "Reads a single code point from the underlying stream, interpreting it by the encoding. Returns " { $link f } " if the stream end is reached." }
 $low-level-note ;
 
+HELP: decode-until
+{ $values
+  { "seps" sequence }
+  { "stream" "an input stream" }
+  { "encoding" "an encoding descriptor" }
+}
+{ $description "Decodes characters from the stream until one of the separators are encountered." } ;
+
 HELP: encode-char
 { $values { "char" "a character" }
     { "stream" "an underlying output stream" }
index 9e4c794c36d3d17d58a27880de5c4eef567d7fc7..e11660d00e9c0f85eb303bbc9bc27f6e9ae5f0f5 100644 (file)
@@ -5,6 +5,9 @@ IN: kernel
 HELP: WIN-EXCEPTION-HANDLER
 { $description "This special object is an " { $link alien } " containing a pointer to the processes global exception handler. Only applicable on " { $link windows } "." } ;
 
+HELP: OBJ-UNDEFINED
+{ $description "Default definition for undefined words" } ;
+
 HELP: eq?
 { $values { "obj1" object } { "obj2" object } { "?" boolean } }
 { $description "Tests if two references point at the same object." } ;
index 4226e25a4014982936e237be34ec6a25ca09cba0..0ab0a1c8ab4a0e4a3ef6b8d28fe473b3c0c6d37d 100644 (file)
@@ -91,24 +91,62 @@ ARTICLE: "word-props" "Word properties"
 $nl
 "The following are some of the properties used by the library:"
 { $table
-    { "Property" "Documentation" }
-    { { $snippet "\"parsing\"" } { $link "parsing-words" } }
-
-    { { { $snippet "\"inline\"" } ", " { $snippet "\"foldable\"" } ", " { $snippet "flushable" } } { $link "declarations" } }
-
-    { { $snippet "\"loc\"" } { "Location information - " { $link where } } }
-
-    { { { $snippet "\"methods\"" } ", " { $snippet "\"combination\"" } } { "Set on generic words - " { $link "generic" } } }
-
-    { { { $snippet "\"reading\"" } ", " { $snippet "\"writing\"" } } { "Set on slot accessor words - " { $link "slots" } } }
-
-    { { $snippet "\"declared-effect\"" } { $link "effects" } }
-
-    { { { $snippet "\"help\"" } ", " { $snippet "\"help-loc\"" } ", " { $snippet "\"help-parent\"" } } { "Where word help is stored - " { $link "writing-help" } } }
-
-    { { $snippet "\"specializer\"" } { $link "hints" } }
-
-    { { $snippet "\"predicating\"" } " Set on class predicates, stores the corresponding class word" }
+  { "Property" "Documentation" }
+  {
+      { $snippet "\"declared-effect\"" } { $link "effects" }
+  }
+  {
+      {
+          { $snippet "\"inline\"" } ", "
+          { $snippet "\"foldable\"" } ", "
+          { $snippet "flushable" }
+      }
+      { $link "declarations" }
+  }
+  {
+      {
+          { $snippet "\"help\"" } ", "
+          { $snippet "\"help-loc\"" } ", "
+          { $snippet "\"help-parent\"" }
+      }
+      { "Where word help is stored - " { $link "writing-help" } }
+  }
+  {
+      { $snippet "\"intrinsic\"" }
+      { "Quotation run by the compiler during cfg building to emit the word inline." }
+  }
+  {
+      { $snippet "\"loc\"" }
+      { "Location information - " { $link where } }
+  }
+  {
+      { { $snippet "\"methods\"" } ", " { $snippet "\"combination\"" } }
+      { "Set on generic words - " { $link "generic" } }
+  }
+  {
+      {
+          { $snippet "\"outputs\"" } ", "
+          { $snippet "\"input-classes\"" } ", "
+          { $snippet "\"default-output-classes\"" }
+      }
+      { "A bunch of metadata used during the value propagation step of the compilation to produce type-optimized code." }
+  }
+  {
+      { $snippet "\"parsing\"" }
+      { $link "parsing-words" }
+  }
+  {
+      { $snippet "\"predicating\"" }
+      " Set on class predicates, stores the corresponding class word"
+  }
+  {
+      { { $snippet "\"reading\"" } ", " { $snippet "\"writing\"" } }
+      { "Set on slot accessor words - " { $link "slots" } }
+  }
+  {
+      { $snippet "\"specializer\"" }
+      { $link "hints" }
+  }
 }
 "Properties which are defined for classes only:"
 { $table
@@ -182,11 +220,16 @@ $nl
     "deferred"
     "declarations"
     "words.introspection"
+    "word-props"
 }
 { $see-also "vocabularies" "vocabs.loader" "definitions" "see" } ;
 
 ABOUT: "words"
 
+HELP: changed-effect
+{ $values { "word" word } }
+{ $description "Signals to the compilation unit that the word has changed. It causes all words that depend on it to be recompiled in response." } ;
+
 HELP: deferred
 { $class-description "The class of deferred words created by " { $link POSTPONE: DEFER: } "." } ;