<commit_before>Queso
=====

Exploring how JISON and language parsers work, by building a CSS preprocessor

To generate quesoParser.js file run
```
make
```

To generate the outputted css us the provided bin/queso
```
bin/queso samples/plain.css
```






Tests
=====

run the tests with

```
make test
```
Or to watch the files and re-run the test on changes with

```
make watch
```
<commit_msg>Including examples of compressed and indented css<commit_after>Queso
=====

Exploring how JISON and language parsers work, by building a CSS preprocessor

To generate quesoParser.js file run
```
make
```

To generate the outputted css us the provided bin/queso
```
bin/queso samples/plain.css

body#home { font: 10px Arial; font-weight: bold; margin: 10px; }
body#home .nestedRule { padding: 10px; }
h1 { font-size: 30px; }
```
This can also be passed a second argument to output either compressed or indented css
```
bin/queso samples/plain.css compress

body#home{font:10px Arial;font-weight:bold;margin:10px;}body#home .nestedRule{padding:10px;}h1{font-size:30px;}

bin/queso samples/plain.css indent

body#home { font: 10px Arial; font-weight: bold; margin: 10px; }
  body#home .nestedRule { padding: 10px; }
h1 { font-size: 30px; }
```





Tests
=====

run the tests with

```
make test
```
Or to watch the files and re-run the test on changes with

```
make watch
```

{'fraction_non_alphanumeric': 0.11889132020423049, 'fraction_numerical': 0.019693654266958426, 'mean_word_length': 4.4229249011857705, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6899696', 'n_tokens_mistral': 504, 'n_tokens_neox': 446, 'n_words': 162}