> For the complete documentation index, see [llms.txt](https://docs.yarnspinner.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yarnspinner.dev/api/csharp/yarn.compiler/yarn.compiler.indentawarelexer/yarn.compiler.indentawarelexer..ctor.md).

# IndentAwareLexer(ICharStream,TextWriter,TextWriter)

Constructor in [IndentAwareLexer](/api/csharp/yarn.compiler/yarn.compiler.indentawarelexer.md)

## Summary

Initializes a new instance of the [IndentAwareLexer](/api/csharp/yarn.compiler/yarn.compiler.indentawarelexer.md) class.

```csharp
public IndentAwareLexer(ICharStream input, TextWriter output, TextWriter errorOutput)
```

## Parameters

| Name                               | Description                                   |
| ---------------------------------- | --------------------------------------------- |
| `Antlr4.Runtime.ICharStream` input | The incoming character stream.                |
| `System.IO.TextWriter` output      | The `System.IO.TextWriter` to send output to. |
| `System.IO.TextWriter` errorOutput | The `System.IO.TextWriter` to send errors to. |
