parseSDL

Parses SDL string into SDLNode[]

parseSDL
(
string input
,
bool printOnError = false
)

Examples

import sily.sdlang;
import std.file;
SDLNode[] arr1 = parseSDL(readText("file.sdl"));
SDLNode[] arr2 = parseSDL("name \"Direct SDLang parsing\" cool=true");
SDLNode[] arr3 = parseSDL("name will print parsing error", true);

Meta