# LineParser

Class in [Yarn.Markup](https://docs.yarnspinner.dev/api/csharp/yarn.markup)

Inherits from `System.Object`

## Summary

Parses text and produces markup information.

```csharp
public sealed class LineParser : IDisposable
```

## Fields

| Name                                                                                                                                                               | Description                                                                                                                                                                     |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [CharacterAttribute](https://docs.yarnspinner.dev/api/csharp/yarn.markup/yarn.markup.lineparser/yarn.markup.lineparser.characterattribute)                         | The name of the implicitly-generated `character` attribute.                                                                                                                     |
| [CharacterAttributeNameProperty](https://docs.yarnspinner.dev/api/csharp/yarn.markup/yarn.markup.lineparser/yarn.markup.lineparser.characterattributenameproperty) | The name of the 'name' property, on the implicitly-generated `character` attribute.                                                                                             |
| [NoMarkupAttribute](https://docs.yarnspinner.dev/api/csharp/yarn.markup/yarn.markup.lineparser/yarn.markup.lineparser.nomarkupattribute)                           | The name of the attribute to use to indicate that no marker processing should occur.                                                                                            |
| [ReplacementMarkerContents](https://docs.yarnspinner.dev/api/csharp/yarn.markup/yarn.markup.lineparser/yarn.markup.lineparser.replacementmarkercontents)           | The name of the property in replacement attributes that contains the text of the attribute.                                                                                     |
| [TrimWhitespaceProperty](https://docs.yarnspinner.dev/api/csharp/yarn.markup/yarn.markup.lineparser/yarn.markup.lineparser.trimwhitespaceproperty)                 | The name of the property to use to signify that trailing whitespace should be trimmed if a tag had preceding whitespace or begins the line. This property must be a bool value. |

## Methods

| Name                                                                                                                                                                                   | Description                                                                   |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- |
| [DeregisterMarkerProcessor(string)](https://docs.yarnspinner.dev/api/csharp/yarn.markup/yarn.markup.lineparser/yarn.markup.lineparser.deregistermarkerprocessor)                       | Removes any marker processor associated with a given marker name.             |
| [Dispose()](https://docs.yarnspinner.dev/api/csharp/yarn.markup/yarn.markup.lineparser/yarn.markup.lineparser.dispose)                                                                 |                                                                               |
| [ExpandSubstitutions(string,IList)](https://docs.yarnspinner.dev/api/csharp/yarn.markup/yarn.markup.lineparser/yarn.markup.lineparser.expandsubstitutions)                             | Replaces all substitution markers in a text with the given substitution list. |
| [ParseString(string,string,bool)](https://docs.yarnspinner.dev/api/csharp/yarn.markup/yarn.markup.lineparser/yarn.markup.lineparser.parsestring)                                       | Parses a string of text and produces a markup parse result.                   |
| [RegisterMarkerProcessor(string,IAttributeMarkerProcessor)](https://docs.yarnspinner.dev/api/csharp/yarn.markup/yarn.markup.lineparser/yarn.markup.lineparser.registermarkerprocessor) | Registers an object as a marker processor for a given marker name.            |

## Structs

| Name                                                                                                                                   | Description                                                     |
| -------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------- |
| [MarkupDiagnostic](https://docs.yarnspinner.dev/api/csharp/yarn.markup/yarn.markup.lineparser/yarn.markup.lineparser.markupdiagnostic) | Represents a diagnostic message produced during markup parsing. |
