/// <summary> /// Compile the specified Lizzie code snippets. /// </summary> /// <returns>The compiled lambda object.</returns> /// <param name="tokenizer">The tokenizer to use.</param> /// <param name="snippets">Snippets containing your Lizzie code.</param> /// <typeparam name="TContext">The type of your context object.</typeparam> public static Lambda <TContext> Compile <TContext>(Tokenizer tokenizer, IEnumerable <string> snippets) { return(Compile <TContext>(tokenizer.Tokenize(snippets))); }
/// <summary> /// Compile the Lizzie code found in the specified streams. /// </summary> /// <returns>The compiled lambda object.</returns> /// <param name="tokenizer">The tokenizer to use.</param> /// <param name="streams">Streams containing Lizzie code. Notice, this method does not claim ownership over /// your streams, and you are responsible for correctly disposing your streams yourself</param> /// <typeparam name="TContext">The type of your context object.</typeparam> public static Lambda <TContext> Compile <TContext>(Tokenizer tokenizer, IEnumerable <Stream> streams) { return(Compile <TContext>(tokenizer.Tokenize(streams))); }
/// <summary> /// Compile the specified Lizzie code. /// </summary> /// <returns>The compiled lambda object.</returns> /// <param name="tokenizer">The tokenizer to use.</param> /// <param name="snippet">Your Lizzie code.</param> /// <typeparam name="TContext">The type of your context object.</typeparam> public static Lambda <TContext> Compile <TContext>(Tokenizer tokenizer, string snippet) { return(Compile <TContext>(tokenizer.Tokenize(snippet))); }
/// <summary> /// Compile the Lizzie code found in the specified stream. /// </summary> /// <returns>The compiled lambda object.</returns> /// <param name="tokenizer">The tokenizer to use.</param> /// <param name="stream">Stream containing Lizzie code. Notice, this method does not claim ownership over /// your stream, and you are responsible for correctly disposing it yourself</param> /// <typeparam name="TContext">The type of your context object.</typeparam> public static Lambda <TContext> Compile <TContext>(Tokenizer tokenizer, Stream stream) { return(Compile <TContext>(tokenizer.Tokenize(stream))); }