<commit_before>compileas

```lua
compileas "value"
```

### Parameters ###

`value` one of:
* `Default` - Compile based on file extensions that have been built into premake.
* `C` - Compile as a C source file.
* `C++` - Compile as a C++ source file.

### Applies To ###

The `workspace`, `project` or `file` scope.

### Availability ###

Premake 5.0.0 alpha 13 or later.

### Examples ###

```lua
filter { "files:**.c" }
    compileas "C++"
```
<commit_msg>Added missing compileas values to docs<commit_after>compileas

```lua
compileas "value"
```

### Parameters ###

`value` one of:
* `Default` - Compile based on file extensions that have been built into premake.
* `C` - Compile as a C source file.
* `C++` - Compile as a C++ source file.
* `Objective-C` - Compile as an Objective-C source file.
* `Objective-C++` - Compile as an Objective-C++ source file.
* `Module` - Needs documentation
* `ModulePartition` - Needs documentation
* `HeaderUnit` - Needs documentation

### Applies To ###

The `workspace`, `project` or `file` scope.

### Availability ###

Premake 5.0.0 alpha 13 or later.

### Examples ###

```lua
filter { "files:**.c" }
    compileas "C++"
```

{'fraction_non_alphanumeric': 0.1727972626176219, 'fraction_numerical': 0.00855431993156544, 'mean_word_length': 3.7950819672131146, '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': '5078179', 'n_tokens_mistral': 411, 'n_tokens_neox': 399, 'n_words': 138}