-
Notifications
You must be signed in to change notification settings - Fork 236
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
32 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
M2/Macaulay2/packages/Macaulay2Doc/functions/makeKeyword-doc.m2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- status: DRAFT | ||
--- author(s): PZJ | ||
--- notes: | ||
|
||
doc /// | ||
Key | ||
makeKeyword | ||
(makeKeyword, String) | ||
[makeKeyword, Precedence] | ||
[makeKeyword, Syntax] | ||
Headline | ||
create a new keyword | ||
Usage | ||
makeKeyword s | ||
Inputs | ||
s: String | ||
Precedence => {ZZ,Symbol} | ||
Syntax => {List,Symbol} | ||
Description | ||
Text | ||
Creates a new Keyword out of the input string. | ||
The options specify the parsing behavior of the keyword. | ||
Possible choices for @TT "Syntax"@ are: @TT "Binary"@, @TT "Prefix"@, @TT "Postfix"@ or @TT "{Binary,Prefix}"@. | ||
If @TT "Precedence"@ is a @TT "Symbol"@, the precedence is set to the one of that symbol. | ||
Example | ||
makeKeyword("≺",Precedence => symbol <) | ||
ZZ ≺ ZZ := (i,j) -> j==i+1 | ||
3≺4 | ||
/// |