Show / Hide Table of Contents

Class BlockParser

Parses a block from LoliScript code.

Inheritance
System.Object
BlockParser
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: RuriLib.LS
Assembly: RuriLib.dll
Syntax
public static class BlockParser

Methods

| Improve this Doc View Source

GetBlockType(String)

Gets the block type from a block line.

Declaration
public static string GetBlockType(string line)
Parameters
Type Name Description
System.String line

The block line

Returns
Type Description
System.String

The type of the block

| Improve this Doc View Source

IsBlock(String)

Tests if a line is parsable as a block.

Declaration
public static bool IsBlock(string line)
Parameters
Type Name Description
System.String line

The data line to test

Returns
Type Description
System.Boolean

Whether the line contains a block or not.

| Improve this Doc View Source

Parse(String)

Parses a block line as a block object.

Declaration
public static BlockBase Parse(string line)
Parameters
Type Name Description
System.String line

The block line

Returns
Type Description
BlockBase

The parsed block object

  • Improve this Doc
  • View Source
Back to top Generated by DocFX