diff options
Diffstat (limited to 'prism/parser.h')
-rw-r--r-- | prism/parser.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/prism/parser.h b/prism/parser.h index 86976fc5d2..b790489d7d 100644 --- a/prism/parser.h +++ b/prism/parser.h @@ -736,6 +736,30 @@ struct pm_parser { * a true value. */ bool frozen_string_literal; + + /** + * Whether or not -p was present on the command line that invoked the + * parser. -p prints the value of $_ at the end of each loop. + */ + bool command_line_p; + + /** + * Whether or not -n was present on the command line that invoked the + * parser. -n wraps the script in a while gets loop. + */ + bool command_line_n; + + /** + * Whether or not -l was present on the command line that invoked the + * parser. -l chomps the input line by default. + */ + bool command_line_l; + + /** + * Whether or not -a was present on the command line that invoked the + * parser. -a splits the input line $_ into $F. + */ + bool command_line_a; }; #endif |