From a3e508b546c741536bec289bd9ebf8b0be3abda1 Mon Sep 17 00:00:00 2001 From: Steven Baltakatei Sandoval Date: Fri, 12 Aug 2022 21:47:26 +0000 Subject: [PATCH 1/1] feat(src/notes.tm):Add TeXmacs file for personal notes --- src/notes.tm | 225 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 225 insertions(+) create mode 100644 src/notes.tm diff --git a/src/notes.tm b/src/notes.tm new file mode 100644 index 0000000..c55e59e --- /dev/null +++ b/src/notes.tm @@ -0,0 +1,225 @@ + + +> + +<\body> + + + + + <\description-compact> + >A construct that establishes + an association between a particular variable, function, or type and its + attributes. (See + and ). + Compare with . + + >A construct that stablishes the + same associations as a declaration but also causes storage to be + allocated for the variable. (See ). + + > + (or ) is a user defined data type in . It is mainly + used to assign names to integral constants. For example, the declaration + allows writing a for loop with names of months =Dec; i++)> to cycle through the integers , 10, 11>. + + >A set of characters + used to represent hard-to-type or invisible characters. Some commonly + used escape sequences in include: + + <\description-paragraphs> + >Represents the character. + + >Represents the character. + + >Represents the character. + + >Represents the (i.e. + \P>\Q) character. + + + All other escape sequences used in are: + + <\description-paragraphs> + >Represents the (bell) character. + + >Represents the character. + + >Represents the character. + + >Represents the character. + + >Represents the character. + + >Represents the character. + + >Represents the character. + + >Represents the character. + + >Represents an (e.g. + is the character<\footnote> + See + . + ). + + >Represents a number (e.g. + is the character>). + + + The process of + freeing memory allocated by a program but which is no longer referenced. + Usually incurs a significant . + (). + The Language does not provide garbage collection by default. + + heap>A large pool of memory that can be used + dynamically \U it is also known as the \Pfree store\Q. This is memory + that is not automatically managed \U you have to explicitly allocate + (using functions such as malloc), and deallocate (e.g. free) the memory. + Failure to free the memory when you are finished with it will result in + what is known as a memory leak. Is the diametrical opposite of the stack + (which, by contrast, is limited not by physical memory but by a + CPU-determined stack size). (See ). + + machine-independent>A property of + code that does not have to be modified in order to run on a different + hardware architecture. (e.g. \PC is called a portable language because + [code written in C] will run on any machine which supports C, without + modifying a single line of code.\Q; ). + + operand>A quantity to which an operator is + applied. (e.g. in the math expression , + is the first operand and is the second operand.) + + operator>A special type of function with + limited numbers of parameters (e.g. 1 to 2) and syntax often requiring a + set of characters different from those normally use for naming variables + (e.g. the character in , the in + , or the in .). + + stack>A region of memory for global variable + storage and is permanent for the entire run of the program. Stack size is + limited not by physical memory availability but by the CPU. Lifetime of + local variables declared within the stack is enforced by the Last-In, + First-Out nature of the stack; when a function returns a value, all stack + memory allocated by declarations within the function is automatically + freed. (See ) + + struct>(short: + ) + a + that defines a physically grouped list of variables under one name in a + block of memory, allowing the different variables to be accessed via a + single + or by the struct declared name which returns the same address. + + The act of + + a + to another struct. (?) () + + text stream>A sequence of characters + divided into lines; each line consists of zero or more characters + followed by a newline character. (See K&R 2nd Ed. Section 1.5 \PCharacter + Input and Output\Q) + + + \; + + + + + + <\description> + >Read one character at a time. + + >A generalization of . Takes three + arguments: + + <\enumerate> + Local statement to run before loop (e.g. to initialize a counting + variable). + + Local statement that, if evaluated as true, permits running of + next iteration of loop. + + Local statement to run after loop (e.g. to increment a counting + variable). + + + >Write one character at a time. + + >Used for printing formatted text to console. + + + \; + + \; + + \; + + +<\initial> + <\collection> + + + + +<\references> + <\collection> + > + > + > + > + > + > + > + > + > + > + > + > + |?>> + |?>> + |?>> + > + > + > + heap|?>> + machine-independent|?>> + operand|?>> + operator|?>> + stack|?>> + struct|?>> + > + > + + + +<\auxiliary> + <\collection> + <\associate|toc> + |math-font-series||1Definitions> + |.>>>>|> + + + 1.1Terminology |.>>>>|> + + + 1.2Functions |.>>>>|> + + + |1.2.1Character Input and Output + |.>>>>|> + > + + + \ No newline at end of file -- 2.39.5