# Simplevars

Parses simple key = value conffiles

Author: Raphael Pinson rap.nosp@m.hink@gmai.nosp@m.l.com

Summary

Simplevars | Parses simple key = value conffiles
License | This file is licenced under the LGPL v2+, like the rest of Augeas.
Lens Usage | To be documented
Examples | The Test_Simplevars file contains various examples and tests.
Augeas Variables |
to_comment_re | The regexp to match the value
Augeas Lenses |
entry |
lns |
Augeas Variables |
filter |

### License

This file is licenced under the LGPL v2+, like the rest of Augeas.

### Lens Usage

To be documented

### Examples

The Test_Simplevars file contains various examples and tests.

### Augeas Variables

### to_comment_re

> let to_comment_re = let to_comment_squote = /'[^\n']*'/ in let to_comment_dquote = /"[^\n"]*"/ in let to_comment_noquote = /[^\n \t'"#][^\n#]*[^\n \t#]|[^\n \t'"#]/ in to_comment_squote | to_comment_dquote | to_comment_noquote

The regexp to match the value

### Augeas Lenses

### entry

> let entry = let some_value = Sep.space_equal . store to_comment_re

### lns

> let lns = (Util.empty | Util.comment | entry)*

### Augeas Variables

### filter

Provides unit tests and examples for the Simplevars lens.

> let to_comment_re = let to_comment_squote = /'[^\n']*'/ in let to_comment_dquote = /"[^\n"]*"/ in let to_comment_noquote = /[^\n \t'"#][^\n#]*[^\n \t#]|[^\n \t'"#]/ in to_comment_squote | to_comment_dquote | to_comment_noquote

The regexp to match the value

> let entry = let some_value = Sep.space_equal . store to_comment_re

> let lns = (Util.empty | Util.comment | entry)*

Close