Skip to content

Instantly share code, notes, and snippets.

@gingershaped
Last active January 30, 2024 16:21
Show Gist options
  • Save gingershaped/1f340f98e76cc2e36966ea9a1d4c68ae to your computer and use it in GitHub Desktop.
Save gingershaped/1f340f98e76cc2e36966ea9a1d4c68ae to your computer and use it in GitHub Desktop.
Flag data
[
{
"type": "boolean",
"name": "Literate mode",
"flag": "l"
},
{
"type": "boolean",
"name": "Preset stack",
"flag": "H"
},
{
"type": "choice",
"name": "Range behavior",
"choices": [
{
"name": "Default",
"flag": ""
},
{
"name": "Start range at zero",
"flag": "M"
},
{
"name": "Offset range by one",
"flag": "m"
},
{
"name": "Both",
"flag": ""
}
]
},
{
"type": "boolean",
"name": "Rangify",
"flag": "R"
},
{
"type": "boolean",
"name": "Full traceback",
"flag": "X"
},
{
"type": "boolean",
"name": "Limit print",
"flag": ""
},
{
"type": "boolean",
"name": "Don't evaluate inputs",
"flag": ""
},
{
"type": "choice",
"name": "Default arity",
"choices": [
{
"name": "1",
"flag": ""
},
{
"name": "2",
"flag": "2"
},
{
"name": "3",
"flag": "3"
}
]
},
{
"type": "choice",
"name": "End print mode",
"choices": [
{
"name": "Join top of stack with newlines",
"flag": "j"
},
{
"name": "Sum/concatenate top of stack",
"flag": "s"
},
{
"name": "Deep-sum top of stack",
"flag": "d"
},
{
"name": "Length of top of stack",
"flag": "L"
},
{
"name": "Pretty-print top of stack",
"flag": "§"
},
{
"name": "Maximum item of top of stack",
"flag": "G"
},
{
"name": "Minimum item of top of stack",
"flag": "g"
},
{
"name": "Entire stack",
"flag": "W"
},
{
"name": "Sum of entire stack",
"flag": ""
},
{
"name": "Length of entire stack",
"flag": "!"
},
{
"name": "Entire stack joined by spaces",
"flag": ""
},
{
"name": "Entire stack joined by newlines",
"flag": "J"
},
{
"name": "Logical NOT of top of stack",
"flag": "¬"
}
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment