Skip to content

M_CommandLine_Core_Tokenizer_Tokenize_1

Moh.Hassan edited this page Oct 10, 2019 · 1 revision

Tokenizer.Tokenize Method (IEnumerable(String), Func(String, NameLookupResult), Func(IEnumerable(Token), IEnumerable(Token)))

Namespace: CommandLine.Core
Assembly: CommandLine (in CommandLine.dll) Version: 0.0.0

Syntax

C#

public static Result<IEnumerable<Token>, Error> Tokenize(
	IEnumerable<string> arguments,
	Func<string, NameLookupResult> nameLookup,
	Func<IEnumerable<Token>, IEnumerable<Token>> normalize
)

VB

Public Shared Function Tokenize ( 
	arguments As IEnumerable(Of String),
	nameLookup As Func(Of String, NameLookupResult),
	normalize As Func(Of IEnumerable(Of Token), IEnumerable(Of Token))
) As Result(Of IEnumerable(Of Token), Error)

C++

public:
static Result<IEnumerable<Token^>^, Error^>^ Tokenize(
	IEnumerable<String^>^ arguments, 
	Func<String^, NameLookupResult>^ nameLookup, 
	Func<IEnumerable<Token^>^, IEnumerable<Token^>^>^ normalize
)

F#

static member Tokenize : 
        arguments : IEnumerable<string> * 
        nameLookup : Func<string, NameLookupResult> * 
        normalize : Func<IEnumerable<Token>, IEnumerable<Token>> -> Result<IEnumerable<Token>, Error> 

Parameters

 

arguments
Type: System.Collections.Generic.IEnumerable(String)
nameLookup
Type: System.Func(String, NameLookupResult)
normalize
Type: System.Func(IEnumerable(Token), IEnumerable(Token))

Return Value

Type: Result(IEnumerable(Token), Error)

See Also

Reference

Tokenizer Class
Tokenize Overload
CommandLine.Core Namespace

Clone this wiki locally