[−][src]Crate romulus
Romulus is a text processing language similar to sed
Here is an example program which process the output of ifconfig
/^(?P[a-zA-Z0-9]+): /,/^[a-zA-Z0-9]+:/ {
/inet (?P[0-9]{1,3}(\.[0-9]{1,3}){3})/ {
print("${inter}: ${ip}")
}
/inet6 (?P[a-fA-F0-9]{0,4}(:[a-fA-F0-9]{0,4}){0,8})/ {
print("${inter}: ${ip}")
}
} Modules
| ast | A module organizing the romulus abstract syntax tree |
| lex | A module which extracts romulus tokens out of string content |
| runtime | A module organizing the runtime elements of a romulus program |
Structs
| Interpreter | The interpreter which processes lines with a romulus program |