Don't send EOF token to the C# mod
This commit is contained in:
@@ -42,11 +42,8 @@ namespace Slang
|
||||
*/
|
||||
public static Line AsList(this Vec_FfiToken_t vec)
|
||||
{
|
||||
L.Info("Converting output into a C# List.");
|
||||
var list = new Line();
|
||||
L.Info("Created new `Line`.");
|
||||
list.Capacity = (int)vec.len;
|
||||
L.Info("Changed `Capacity` to be returned Vec's len");
|
||||
|
||||
var currentPtr = vec.ptr;
|
||||
|
||||
|
||||
@@ -12,17 +12,13 @@ namespace Slang
|
||||
return new Line();
|
||||
}
|
||||
|
||||
L.Info("Input string not empty");
|
||||
|
||||
fixed (char* ptrString = source)
|
||||
{
|
||||
L.Info("In `fixed` block.");
|
||||
var input = new slice_ref_uint16_t
|
||||
{
|
||||
ptr = (ushort*)ptrString,
|
||||
len = (UIntPtr)source.Length,
|
||||
};
|
||||
L.Info("Calling tokenize_line");
|
||||
return Ffi.tokenize_line(input).AsList();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace Slang
|
||||
return;
|
||||
}
|
||||
|
||||
L.Info("Detected Slang source, compiling...");
|
||||
L.Debug("Detected Slang source, compiling...");
|
||||
|
||||
// Compile the Slang source into IC10
|
||||
string compiled = SlangPlugin.Compile(result);
|
||||
|
||||
Reference in New Issue
Block a user