Version 1.3.1
Added repeat(s,n) method takes a string and returns that string repeated n times
This commit is contained in:
parent
b4cca046a3
commit
16ada0e707
BIN
packages/OpenTK.1.1.2349.61993/OpenTK.1.1.2349.61993.nupkg
vendored
Normal file
BIN
packages/OpenTK.1.1.2349.61993/OpenTK.1.1.2349.61993.nupkg
vendored
Normal file
Binary file not shown.
15
packages/OpenTK.1.1.2349.61993/lib/NET40/OpenTK.dll.config
vendored
Normal file
15
packages/OpenTK.1.1.2349.61993/lib/NET40/OpenTK.dll.config
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
<configuration>
|
||||
<dllmap os="linux" dll="opengl32.dll" target="libGL.so.1"/>
|
||||
<dllmap os="linux" dll="glu32.dll" target="libGLU.so.1"/>
|
||||
<dllmap os="linux" dll="openal32.dll" target="libopenal.so.1"/>
|
||||
<dllmap os="linux" dll="alut.dll" target="libalut.so.0"/>
|
||||
<dllmap os="linux" dll="opencl.dll" target="libOpenCL.so"/>
|
||||
<dllmap os="linux" dll="libX11" target="libX11.so.6"/>
|
||||
<dllmap os="linux" dll="SDL2.dll" target="libSDL2-2.0.so.0"/>
|
||||
<dllmap os="osx" dll="openal32.dll" target="/System/Library/Frameworks/OpenAL.framework/OpenAL" />
|
||||
<dllmap os="osx" dll="alut.dll" target="/System/Library/Frameworks/OpenAL.framework/OpenAL" />
|
||||
<dllmap os="osx" dll="libGLES.dll" target="/System/Library/Frameworks/OpenGLES.framework/OpenGLES" />
|
||||
<dllmap os="osx" dll="libGLESv2.dll" target="/System/Library/Frameworks/OpenGLES.framework/OpenGLES" />
|
||||
<dllmap os="osx" dll="opencl.dll" target="/System/Library/Frameworks/OpenCL.framework/OpenCL"/>
|
||||
<dllmap os="osx" dll="SDL2.dll" target="libSDL2.dylib"/>
|
||||
</configuration>
|
||||
186065
packages/OpenTK.1.1.2349.61993/lib/NET40/OpenTK.xml
vendored
Normal file
186065
packages/OpenTK.1.1.2349.61993/lib/NET40/OpenTK.xml
vendored
Normal file
File diff suppressed because it is too large
Load Diff
BIN
packages/OpenTK.NETCore.1.1.2749.6433/OpenTK.NETCore.1.1.2749.6433.nupkg
vendored
Normal file
BIN
packages/OpenTK.NETCore.1.1.2749.6433/OpenTK.NETCore.1.1.2749.6433.nupkg
vendored
Normal file
Binary file not shown.
443138
packages/OpenTK.NETCore.1.1.2749.6433/lib/netstandard1.3/OpenTK.xml
vendored
Normal file
443138
packages/OpenTK.NETCore.1.1.2749.6433/lib/netstandard1.3/OpenTK.xml
vendored
Normal file
File diff suppressed because it is too large
Load Diff
186065
parseManager/bin/Debug/OpenTK.xml
Normal file
186065
parseManager/bin/Debug/OpenTK.xml
Normal file
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@ -6,3 +6,5 @@ C:\Users\Ryan\Documents\SharpDevelop Projects\parseManager\parseManager\obj\Debu
|
||||
C:\Users\Ryan\Documents\SharpDevelop Projects\parseManager\parseManager\obj\Debug\parseManagerTester.pdb
|
||||
C:\Users\Ryan\Documents\SharpDevelop Projects\parseManager\parseManager\bin\Debug\NAudio.dll
|
||||
C:\Users\Ryan\Documents\SharpDevelop Projects\parseManager\parseManager\bin\Debug\NAudio.xml
|
||||
C:\Users\Ryan\Documents\SharpDevelop Projects\parseManager\parseManager\bin\Debug\OpenTK.dll
|
||||
C:\Users\Ryan\Documents\SharpDevelop Projects\parseManager\parseManager\bin\Debug\OpenTK.xml
|
||||
|
||||
@ -2,4 +2,5 @@
|
||||
<packages>
|
||||
<package id="MediaToolkit" version="1.1.0.1" targetFramework="net40" />
|
||||
<package id="NAudio" version="1.8.2" targetFramework="net40" />
|
||||
<package id="OpenTK" version="1.1.2349.61993" targetFramework="net452" />
|
||||
</packages>
|
||||
@ -8,6 +8,7 @@ using System.Data;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Reflection;
|
||||
@ -18,12 +19,12 @@ using NAudio.Wave;
|
||||
using parseManagerCS;
|
||||
namespace parseManagerCS
|
||||
{
|
||||
/// The parseManager is an Advance Config Script
|
||||
/// The parseManager is an Advance Config Script (It goes beyond what it was initially desgined for though!)
|
||||
/// It allows the user to run code while also defining variables
|
||||
/// This also has very flexible flow control meaning you can use it for chat logic and such
|
||||
public class parseManager
|
||||
{
|
||||
public string _VERSION = "1.3.0";
|
||||
public string _VERSION = "1.3.1";
|
||||
standardDefine _invoke = new standardDefine();
|
||||
string _filepath;
|
||||
bool _active = true;
|
||||
@ -802,7 +803,7 @@ namespace parseManagerCS
|
||||
temp = _lines[i];
|
||||
var pureLine = Regex.Match(temp, "^\"(.+)\"");
|
||||
var FuncTest = Regex.Match(temp, @"([a-zA-Z0-9_]+)\s?\((.*)\)");
|
||||
var assignment = Regex.Match(temp, "^([a-zA-Z0-9_,\\[\\]\"]+)\\s*=([a-zA-Z\\s\\|&\\^\\+\\-\\*/%0-9_\",\\[\\]]*)");
|
||||
var assignment = Regex.Match(temp, "^([a-zA-Z0-9_,\\[\\]\"]+)\\s*=\\s*(.+)");
|
||||
var FuncWReturn = Regex.Match(temp, "([\\[\\]\"a-zA-Z0-9_,]+)\\s?=\\s?([a-zA-Z0-9_]+)\\s?\\((.*)\\)");
|
||||
var FuncWOReturn = Regex.Match(temp, @"^([a-zA-Z0-9_]+)\s?\((.*)\)");
|
||||
var label = Regex.Match(temp, "::(.*)::");
|
||||
@ -875,9 +876,10 @@ namespace parseManagerCS
|
||||
_compiledlines.Add(new CMD("LINE", new object[]{ pureLine.ToString() }));
|
||||
} else if (assignment.ToString() != "") {
|
||||
var vars = GLOBALS.Split(assignment.Groups[1].ToString());
|
||||
Console.WriteLine(assignment.Groups[2]);
|
||||
var tabTest = assignment.Groups[2].ToString();
|
||||
string[] vals = GLOBALS.Split(tabTest);
|
||||
//vals = Regex.Split(assignment.Groups[2].ToString(), ",(?=(?:[^\"'\\[\\]]*[\"'\\[\\]][^\"'\\[\\]]*[\"'\\[\\]])*[^\"'\\[\\]]*$)");
|
||||
//string[] vals = Regex.Split(assignment.Groups[2].ToString(), ",(?=(?:[^\"'\\[\\]]*[\"'\\[\\]][^\"'\\[\\]]*[\"'\\[\\]])*[^\"'\\[\\]]*$)");
|
||||
_compiledlines.Add(new CMD("ASSIGN", new object[]{ vars, vals }));
|
||||
} else {
|
||||
_compiledlines.Add(new CMD("UNKNOWN", new object[]{ }));
|
||||
@ -1000,7 +1002,7 @@ namespace parseManagerCS
|
||||
} else if (!double.IsNaN(temp2)) {
|
||||
str = str.Replace(m.Groups[0].Value, temp2.ToString());
|
||||
} else {
|
||||
PM.PushError("Variable \""+m.Groups[0].Value+"\" does not exist: ");
|
||||
return double.NaN;//PM.PushError("Variable \"" + m.Groups[0].Value + "\" does not exist");
|
||||
}
|
||||
}
|
||||
double result;
|
||||
@ -1221,7 +1223,8 @@ namespace parseManagerCS
|
||||
{
|
||||
return _current;
|
||||
}
|
||||
public static parseManager GetMainPM(){
|
||||
public static parseManager GetMainPM()
|
||||
{
|
||||
return _main;
|
||||
}
|
||||
public static bool GetFlag(string flag)
|
||||
@ -1420,6 +1423,9 @@ public class standardDefine
|
||||
temp.SetParent(PM.GetENV());
|
||||
return temp;
|
||||
}
|
||||
public string repeat(parseManager PM,string str, double n){
|
||||
return string.Concat(Enumerable.Repeat(str, (int)n));
|
||||
}
|
||||
public string getInput(parseManager PM)
|
||||
{
|
||||
return Console.ReadLine();
|
||||
@ -1633,13 +1639,16 @@ public class standardDefine
|
||||
PM.PushError(e.Message);
|
||||
}
|
||||
}
|
||||
public void setWindowSize(parseManager PM, double x,double y){
|
||||
public void setWindowSize(parseManager PM, double x, double y)
|
||||
{
|
||||
Console.SetWindowSize((int)x, (int)y);
|
||||
}
|
||||
public double getConsoleWidth(parseManager PM){
|
||||
public double getConsoleWidth(parseManager PM)
|
||||
{
|
||||
return Console.WindowWidth;
|
||||
}
|
||||
public double getConsoleHeight(parseManager PM){
|
||||
public double getConsoleHeight(parseManager PM)
|
||||
{
|
||||
return Console.WindowHeight;
|
||||
}
|
||||
public bool isDown(parseManager PM, string key)
|
||||
|
||||
@ -38,6 +38,9 @@
|
||||
<Reference Include="NAudio">
|
||||
<HintPath>..\packages\NAudio.1.8.2\lib\net35\NAudio.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="OpenTK">
|
||||
<HintPath>..\packages\OpenTK.1.1.2349.61993\lib\NET40\OpenTK.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="PresentationCore">
|
||||
<RequiredTargetFramework>3.0</RequiredTargetFramework>
|
||||
</Reference>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user