You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
719 B
22 lines
719 B
Imports Microsoft.VisualBasic.Linq.Framework.Provider
|
|
Imports Microsoft.VisualBasic.Linq.Framework.Provider.ImportsAPI
|
|
Imports Microsoft.VisualBasic.Linq
|
|
|
|
Module Module1
|
|
|
|
Sub Main()
|
|
|
|
Dim s As String = "$s->length + 5"
|
|
Dim typew = GetType(String)
|
|
Dim www = Microsoft.VisualBasic.Linq.LDM.Expression.WhereClosure.CreateLinqWhere(typew, s)
|
|
Dim types As TypeRegistry = TypeRegistry.LoadDefault
|
|
Dim api As APIProvider = APIProvider.LoadDefault
|
|
|
|
Call www.Compile(types, api)
|
|
|
|
|
|
Dim p As New Parser.Parser
|
|
Dim n = p.ParseExpression("$($(test2 pp $rt) -> test_func par1 $ffjhg par2 $dee) -> test3 p3 $($(test5 de) -> test4 ppp $gr)")
|
|
End Sub
|
|
End Module
|