1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-19 16:51:00 +00:00
serenity/Userland/Shell
AnotherTest a45b2ea6fb Shell: Add support for 'immediate' expressions as variable substitutions
This commit adds a few basic variable substitution operations:
- length
    Find the length of a string or a list
- length_across
    Find the lengths of things inside a list
- remove_{suffix,prefix}
    Remove a suffix or a prefix from all the passed values
- regex_replace
    Replace all matches of a given regex with a given template
- split
    Split the given string with the given delimiter (or to its
    code points if the delimiter is empty)
- concat_lists
    concatenates any given lists into one

Closes #4316 (the ancient version of this same feature)
2021-03-07 10:59:51 +01:00
..
Tests Shell: Add support for 'immediate' expressions as variable substitutions 2021-03-07 10:59:51 +01:00
AST.cpp Shell: Add support for 'immediate' expressions as variable substitutions 2021-03-07 10:59:51 +01:00
AST.h Shell: Add support for 'immediate' expressions as variable substitutions 2021-03-07 10:59:51 +01:00
Builtin.cpp Shell: Make the 'not' builtin return the correct exit code for functions 2021-03-07 10:58:42 +01:00
CMakeLists.txt Shell: Add support for 'immediate' expressions as variable substitutions 2021-03-07 10:59:51 +01:00
Execution.h Shell: Move to Userland/Shell/ 2021-01-12 12:04:07 +01:00
Formatter.cpp Shell: Add support for 'immediate' expressions as variable substitutions 2021-03-07 10:59:51 +01:00
Formatter.h Shell: Add support for 'immediate' expressions as variable substitutions 2021-03-07 10:59:51 +01:00
Forward.h Shell: Add support for 'immediate' expressions as variable substitutions 2021-03-07 10:59:51 +01:00
ImmediateFunctions.cpp Shell: Add support for 'immediate' expressions as variable substitutions 2021-03-07 10:59:51 +01:00
Job.cpp Shell: Move to Userland/Shell/ 2021-01-12 12:04:07 +01:00
Job.h Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
main.cpp Shell: Skip caching PATH and history load/save when not interactive 2021-03-07 10:58:42 +01:00
NodeVisitor.cpp Shell: Add support for 'immediate' expressions as variable substitutions 2021-03-07 10:59:51 +01:00
NodeVisitor.h Shell: Add support for 'immediate' expressions as variable substitutions 2021-03-07 10:59:51 +01:00
Parser.cpp Shell: Add support for 'immediate' expressions as variable substitutions 2021-03-07 10:59:51 +01:00
Parser.h Shell: Add support for 'immediate' expressions as variable substitutions 2021-03-07 10:59:51 +01:00
Shell.cpp Shell: Add support for 'immediate' expressions as variable substitutions 2021-03-07 10:59:51 +01:00
Shell.h Shell: Add support for 'immediate' expressions as variable substitutions 2021-03-07 10:59:51 +01:00
SyntaxHighlighter.cpp Shell: Add support for 'immediate' expressions as variable substitutions 2021-03-07 10:59:51 +01:00
SyntaxHighlighter.h LibSyntax: Make rehighlight() take Gfx::Palette as by const-reference 2021-02-11 23:52:39 +01:00