# Feature Samples 2026-04-15

Run commands from the release root unless noted otherwise.

## Compiler Feature Sample

File: `demos\System\CompilerFeatures_2026_04_15.o2bas`

Purpose: Demonstrates new compiler language forms such as `#pragma pack`, interfaces/modules, and property lowering.

Suggested check:

```bat
co2.exe demos\System\CompilerFeatures_2026_04_15.o2bas
```

Expected result: the sample compiles and demonstrates the added syntax paths.

## JSON Parser Sample

File: `demos\DataProcessing\JSONparsing.o2bas`

Purpose: Demonstrates `JsonUtil.inc`, `JsonDoc.Parse`, query/navigation helpers, and JSON formatting.

Suggested check:

```bat
co2.exe demos\DataProcessing\JSONparsing.o2bas
```

Expected result: the sample compiles and prints/parses JSON data using the reusable module.

## DebugMap v2 Sample

File: `demos\Diagnostics\DebugMapDemo_2026_04_15.o2bas`

Purpose: Demonstrates debug map generation.

Suggested check:

```bat
co2.exe -g demos\Diagnostics\DebugMapDemo_2026_04_15.o2bas DebugMapDemo.exe
```

Expected result: compilation produces the target executable and a `.dbgmap.txt` file containing `OxygenBasic Debug Map v2`, `[files]`, `[lines]`, `[symbols]`, and `[procedures]` sections.

## LMStudioAI Sample

File: `demos\System\Internet\LMStudioAI_Demo.o2bas`

Purpose: Demonstrates calls against LM Studio or another OpenAI-compatible `/v1` server.

Prerequisite: LM Studio server running at `http://127.0.0.1:1234/v1`, or configure the base URL/API key in the sample.

Expected result: with a reachable compatible server, the sample can list models and send chat/response requests. If no server is running, skip this runtime check.
