+Resources

This commit is contained in:
2025-10-08 09:53:53 +08:00
parent 284e764345
commit c1bd6bbabd
9 changed files with 2855 additions and 0 deletions

424
Resources/CompileErrors.Designer.cs generated Normal file
View File

@@ -0,0 +1,424 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Flee.Resources {
using System;
using System.Reflection;
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class CompileErrors {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal CompileErrors() {
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Flee.Resources.CompileErrors", typeof(CompileErrors).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
/// <summary>
/// Looks up a localized string similar to Ambiguous call of function &apos;{0}({1})&apos;.
/// </summary>
internal static string AmbiguousCallOfFunction {
get {
return ResourceManager.GetString("AmbiguousCallOfFunction", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Ambiguous overloaded operator (&apos;{2}&apos;) in types &apos;{0}&apos; and &apos;{1}&apos;.
/// </summary>
internal static string AmbiguousOverloadedOperator {
get {
return ResourceManager.GetString("AmbiguousOverloadedOperator", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Analysis: {0}.
/// </summary>
internal static string ANALYSIS {
get {
return ResourceManager.GetString("ANALYSIS", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Array indexers must be of type &apos;{0}&apos;.
/// </summary>
internal static string ArrayIndexersMustBeOfType {
get {
return ResourceManager.GetString("ArrayIndexersMustBeOfType", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to The calculation engine does not contain the atom &apos;${0}&apos;.
/// </summary>
internal static string CalcEngineDoesNotContainAtom {
get {
return ResourceManager.GetString("CalcEngineDoesNotContainAtom", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Cannot convert type &apos;{0}&apos; to &apos;{1}&apos;.
/// </summary>
internal static string CannotConvertType {
get {
return ResourceManager.GetString("CannotConvertType", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Cannot convert type &apos;{0}&apos; to expression result of &apos;{1}&apos;.
/// </summary>
internal static string CannotConvertTypeToExpressionResult {
get {
return ResourceManager.GetString("CannotConvertTypeToExpressionResult", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to String was not recognized as a valid &apos;{0}&apos;.
/// </summary>
internal static string CannotParseType {
get {
return ResourceManager.GetString("CannotParseType", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Cannot reference a calculation engine atom without a calculation engine.
/// </summary>
internal static string CannotReferenceCalcEngineAtomWithoutCalcEngine {
get {
return ResourceManager.GetString("CannotReferenceCalcEngineAtomWithoutCalcEngine", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Could not resolve type of &apos;{0}&apos;.
/// </summary>
internal static string CouldNotResolveType {
get {
return ResourceManager.GetString("CouldNotResolveType", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to First argument does not evaluate to a Boolean.
/// </summary>
internal static string FirstArgNotBoolean {
get {
return ResourceManager.GetString("FirstArgNotBoolean", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Function &apos;{0}&apos; does not return a value.
/// </summary>
internal static string FunctionHasNoReturnValue {
get {
return ResourceManager.GetString("FunctionHasNoReturnValue", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to The field/property/variable name &apos;{0}&apos; is ambiguous.
/// </summary>
internal static string IdentifierIsAmbiguous {
get {
return ResourceManager.GetString("IdentifierIsAmbiguous", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to The field/property/variable name &apos;{0}&apos; is ambiguous on type &apos;{1}&apos;.
/// </summary>
internal static string IdentifierIsAmbiguousOnType {
get {
return ResourceManager.GetString("IdentifierIsAmbiguousOnType", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Internal error: {0}.
/// </summary>
internal static string INTERNAL_ERROR {
get {
return ResourceManager.GetString("INTERNAL_ERROR", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Invalid Token: {0}.
/// </summary>
internal static string INVALID_TOKEN {
get {
return ResourceManager.GetString("INVALID_TOKEN", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to I/O error: {0}.
/// </summary>
internal static string IO {
get {
return ResourceManager.GetString("IO", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Line: {0}, Column: {1}.
/// </summary>
internal static string LineColumn {
get {
return ResourceManager.GetString("LineColumn", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Multiple array indexes are not supported.
/// </summary>
internal static string MultiArrayIndexNotSupported {
get {
return ResourceManager.GetString("MultiArrayIndexNotSupported", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Namespace &apos;{0}&apos; cannot be used as a type.
/// </summary>
internal static string NamespaceCannotBeUsedAsType {
get {
return ResourceManager.GetString("NamespaceCannotBeUsedAsType", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Cannot determine result type of expression; neither the True ({0}) or False ({1}) arguments are convertible to one another.
/// </summary>
internal static string NeitherArgIsConvertibleToTheOther {
get {
return ResourceManager.GetString("NeitherArgIsConvertibleToTheOther", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Could not find any accessible matches for &apos;{0}({1})&apos;.
/// </summary>
internal static string NoAccessibleMatches {
get {
return ResourceManager.GetString("NoAccessibleMatches", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Could not find any accessible matches for &apos;{0}({1})&apos; on type &apos;{2}&apos;.
/// </summary>
internal static string NoAccessibleMatchesOnType {
get {
return ResourceManager.GetString("NoAccessibleMatchesOnType", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Could not find a field/property/variable with the name &apos;{0}&apos;.
/// </summary>
internal static string NoIdentifierWithName {
get {
return ResourceManager.GetString("NoIdentifierWithName", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Could not find a field/property/variable with the name &apos;{0}&apos; on the type &apos;{1}&apos;.
/// </summary>
internal static string NoIdentifierWithNameOnType {
get {
return ResourceManager.GetString("NoIdentifierWithNameOnType", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Operand type of &apos;{0}&apos; is not convertible to collection type of &apos;{1}&apos;.
/// </summary>
internal static string OperandNotConvertibleToCollectionType {
get {
return ResourceManager.GetString("OperandNotConvertibleToCollectionType", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Operation not defined for type &apos;{0}&apos;.
/// </summary>
internal static string OperationNotDefinedForType {
get {
return ResourceManager.GetString("OperationNotDefinedForType", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Operation &apos;{0}&apos; is not defined for types &apos;{1}&apos; and &apos;{2}&apos;.
/// </summary>
internal static string OperationNotDefinedForTypes {
get {
return ResourceManager.GetString("OperationNotDefinedForTypes", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Reference to a non-shared member &apos;{0}&apos; requires an object reference.
/// </summary>
internal static string ReferenceToNonSharedMemberRequiresObjectReference {
get {
return ResourceManager.GetString("ReferenceToNonSharedMemberRequiresObjectReference", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Search argument type &apos;{0}&apos; is not a known collection type.
/// </summary>
internal static string SearchArgIsNotKnownCollectionType {
get {
return ResourceManager.GetString("SearchArgIsNotKnownCollectionType", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Static member &apos;{0}&apos; cannot be accessed with an instance reference; qualify it with a type name instead.
/// </summary>
internal static string StaticMemberCannotBeAccessedWithInstanceReference {
get {
return ResourceManager.GetString("StaticMemberCannotBeAccessedWithInstanceReference", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to SyntaxError.
/// </summary>
internal static string SyntaxError {
get {
return ResourceManager.GetString("SyntaxError", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to &apos;{0}&apos; is a type and cannot be used as an expression.
/// </summary>
internal static string TypeCannotBeUsedAsAnExpression {
get {
return ResourceManager.GetString("TypeCannotBeUsedAsAnExpression", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Type &apos;{0}&apos; is not an array and does not have an indexer which accepts &apos;{1}&apos;.
/// </summary>
internal static string TypeNotArrayAndHasNoIndexerOfType {
get {
return ResourceManager.GetString("TypeNotArrayAndHasNoIndexerOfType", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Could find not function &apos;{0}({1})&apos;.
/// </summary>
internal static string UndefinedFunction {
get {
return ResourceManager.GetString("UndefinedFunction", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Could find not function &apos;{0}({1})&apos; on type &apos;{2}&apos;.
/// </summary>
internal static string UndefinedFunctionOnType {
get {
return ResourceManager.GetString("UndefinedFunctionOnType", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Unexpected character: {0}.
/// </summary>
internal static string UNEXPECTED_CHAR {
get {
return ResourceManager.GetString("UNEXPECTED_CHAR", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Unexpected end of file.
/// </summary>
internal static string UNEXPECTED_EOF {
get {
return ResourceManager.GetString("UNEXPECTED_EOF", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Unexpected token {0}; expected one of {1}.
/// </summary>
internal static string UNEXPECTED_TOKEN {
get {
return ResourceManager.GetString("UNEXPECTED_TOKEN", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to &apos;{0}&apos; not representable in type &apos;{1}&apos;.
/// </summary>
internal static string ValueNotRepresentableInType {
get {
return ResourceManager.GetString("ValueNotRepresentableInType", resourceCulture);
}
}
}
}

View File

@@ -0,0 +1,240 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="AmbiguousCallOfFunction" xml:space="preserve">
<value>Ambiguous call of function '{0}({1})'</value>
</data>
<data name="AmbiguousOverloadedOperator" xml:space="preserve">
<value>Ambiguous overloaded operator ('{2}') in types '{0}' and '{1}'</value>
</data>
<data name="ANALYSIS" xml:space="preserve">
<value>Analysis: {0}</value>
</data>
<data name="ArrayIndexersMustBeOfType" xml:space="preserve">
<value>Array indexers must be of type '{0}'</value>
</data>
<data name="CalcEngineDoesNotContainAtom" xml:space="preserve">
<value>The calculation engine does not contain the atom '${0}'</value>
</data>
<data name="CannotConvertType" xml:space="preserve">
<value>Cannot convert type '{0}' to '{1}'</value>
</data>
<data name="CannotConvertTypeToExpressionResult" xml:space="preserve">
<value>Cannot convert type '{0}' to expression result of '{1}'</value>
</data>
<data name="CannotParseType" xml:space="preserve">
<value>String was not recognized as a valid '{0}'</value>
</data>
<data name="CannotReferenceCalcEngineAtomWithoutCalcEngine" xml:space="preserve">
<value>Cannot reference a calculation engine atom without a calculation engine</value>
</data>
<data name="CouldNotResolveType" xml:space="preserve">
<value>Could not resolve type of '{0}'</value>
</data>
<data name="FirstArgNotBoolean" xml:space="preserve">
<value>First argument does not evaluate to a Boolean</value>
</data>
<data name="FunctionHasNoReturnValue" xml:space="preserve">
<value>Function '{0}' does not return a value</value>
</data>
<data name="IdentifierIsAmbiguous" xml:space="preserve">
<value>The field/property/variable name '{0}' is ambiguous</value>
</data>
<data name="IdentifierIsAmbiguousOnType" xml:space="preserve">
<value>The field/property/variable name '{0}' is ambiguous on type '{1}'</value>
</data>
<data name="INTERNAL_ERROR" xml:space="preserve">
<value>Internal error: {0}</value>
</data>
<data name="INVALID_TOKEN" xml:space="preserve">
<value>Invalid Token: {0}</value>
</data>
<data name="IO" xml:space="preserve">
<value>I/O error: {0}</value>
</data>
<data name="LineColumn" xml:space="preserve">
<value>Line: {0}, Column: {1}</value>
</data>
<data name="MultiArrayIndexNotSupported" xml:space="preserve">
<value>Multiple array indexes are not supported</value>
</data>
<data name="NamespaceCannotBeUsedAsType" xml:space="preserve">
<value>Namespace '{0}' cannot be used as a type</value>
</data>
<data name="NeitherArgIsConvertibleToTheOther" xml:space="preserve">
<value>Cannot determine result type of expression; neither the True ({0}) or False ({1}) arguments are convertible to one another</value>
</data>
<data name="NoAccessibleMatches" xml:space="preserve">
<value>Could not find any accessible matches for '{0}({1})'</value>
</data>
<data name="NoAccessibleMatchesOnType" xml:space="preserve">
<value>Could not find any accessible matches for '{0}({1})' on type '{2}'</value>
</data>
<data name="NoIdentifierWithName" xml:space="preserve">
<value>Could not find a field/property/variable with the name '{0}'</value>
</data>
<data name="NoIdentifierWithNameOnType" xml:space="preserve">
<value>Could not find a field/property/variable with the name '{0}' on the type '{1}'</value>
</data>
<data name="OperandNotConvertibleToCollectionType" xml:space="preserve">
<value>Operand type of '{0}' is not convertible to collection type of '{1}'</value>
</data>
<data name="OperationNotDefinedForType" xml:space="preserve">
<value>Operation not defined for type '{0}'</value>
</data>
<data name="OperationNotDefinedForTypes" xml:space="preserve">
<value>Operation '{0}' is not defined for types '{1}' and '{2}'</value>
</data>
<data name="ReferenceToNonSharedMemberRequiresObjectReference" xml:space="preserve">
<value>Reference to a non-shared member '{0}' requires an object reference</value>
</data>
<data name="SearchArgIsNotKnownCollectionType" xml:space="preserve">
<value>Search argument type '{0}' is not a known collection type</value>
</data>
<data name="StaticMemberCannotBeAccessedWithInstanceReference" xml:space="preserve">
<value>Static member '{0}' cannot be accessed with an instance reference; qualify it with a type name instead</value>
</data>
<data name="SyntaxError" xml:space="preserve">
<value>SyntaxError</value>
</data>
<data name="TypeCannotBeUsedAsAnExpression" xml:space="preserve">
<value>'{0}' is a type and cannot be used as an expression</value>
</data>
<data name="TypeNotArrayAndHasNoIndexerOfType" xml:space="preserve">
<value>Type '{0}' is not an array and does not have an indexer which accepts '{1}'</value>
</data>
<data name="UndefinedFunction" xml:space="preserve">
<value>Could find not function '{0}({1})'</value>
</data>
<data name="UndefinedFunctionOnType" xml:space="preserve">
<value>Could find not function '{0}({1})' on type '{2}'</value>
</data>
<data name="UNEXPECTED_CHAR" xml:space="preserve">
<value>Unexpected character: {0}</value>
</data>
<data name="UNEXPECTED_EOF" xml:space="preserve">
<value>Unexpected end of file</value>
</data>
<data name="UNEXPECTED_TOKEN" xml:space="preserve">
<value>Unexpected token {0}; expected one of {1}</value>
</data>
<data name="ValueNotRepresentableInType" xml:space="preserve">
<value>'{0}' not representable in type '{1}'</value>
</data>
</root>

1220
Resources/DocComments.xml Normal file

File diff suppressed because it is too large Load Diff

325
Resources/ElementNames.Designer.cs generated Normal file
View File

@@ -0,0 +1,325 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Flee.Resources {
using System;
using System.Reflection;
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class ElementNames {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal ElementNames() {
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Flee.Resources.ElementNames", typeof(ElementNames).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
/// <summary>
/// Looks up a localized string similar to AndOrElement.
/// </summary>
internal static string AndOrElement {
get {
return ResourceManager.GetString("AndOrElement", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to ArithmeticElement.
/// </summary>
internal static string ArithmeticElement {
get {
return ResourceManager.GetString("ArithmeticElement", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to BooleanLiteralElement.
/// </summary>
internal static string BooleanLiteralElement {
get {
return ResourceManager.GetString("BooleanLiteralElement", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to CalcEngineAtom.
/// </summary>
internal static string CalcEngineAtom {
get {
return ResourceManager.GetString("CalcEngineAtom", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to CastElement.
/// </summary>
internal static string CastElement {
get {
return ResourceManager.GetString("CastElement", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to CharLiteralElement.
/// </summary>
internal static string CharLiteralElement {
get {
return ResourceManager.GetString("CharLiteralElement", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to CompareElement.
/// </summary>
internal static string CompareElement {
get {
return ResourceManager.GetString("CompareElement", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to ConditionalElement.
/// </summary>
internal static string ConditionalElement {
get {
return ResourceManager.GetString("ConditionalElement", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to DateTimeLiteralElement.
/// </summary>
internal static string DateTimeLiteralElement {
get {
return ResourceManager.GetString("DateTimeLiteralElement", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to DoubleLiteralElement.
/// </summary>
internal static string DoubleLiteralElement {
get {
return ResourceManager.GetString("DoubleLiteralElement", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to ExpressionMemberElement.
/// </summary>
internal static string ExpressionMemberElement {
get {
return ResourceManager.GetString("ExpressionMemberElement", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to FunctionCallElement.
/// </summary>
internal static string FunctionCallElement {
get {
return ResourceManager.GetString("FunctionCallElement", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to IdentifierElement.
/// </summary>
internal static string IdentifierElement {
get {
return ResourceManager.GetString("IdentifierElement", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to IndexerElement.
/// </summary>
internal static string IndexerElement {
get {
return ResourceManager.GetString("IndexerElement", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to InElement.
/// </summary>
internal static string InElement {
get {
return ResourceManager.GetString("InElement", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Int32Literal.
/// </summary>
internal static string Int32Literal {
get {
return ResourceManager.GetString("Int32Literal", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Int64LiteralElement.
/// </summary>
internal static string Int64LiteralElement {
get {
return ResourceManager.GetString("Int64LiteralElement", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to InvocationListElement.
/// </summary>
internal static string InvocationListElement {
get {
return ResourceManager.GetString("InvocationListElement", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to NegateElement.
/// </summary>
internal static string NegateElement {
get {
return ResourceManager.GetString("NegateElement", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to NotElement.
/// </summary>
internal static string NotElement {
get {
return ResourceManager.GetString("NotElement", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to NullLiteralElement.
/// </summary>
internal static string NullLiteralElement {
get {
return ResourceManager.GetString("NullLiteralElement", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to RootExpressionElement.
/// </summary>
internal static string RootExpressionElement {
get {
return ResourceManager.GetString("RootExpressionElement", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to ShiftElement.
/// </summary>
internal static string ShiftElement {
get {
return ResourceManager.GetString("ShiftElement", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to SingleLiteralElement.
/// </summary>
internal static string SingleLiteralElement {
get {
return ResourceManager.GetString("SingleLiteralElement", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to StringLiteralElement.
/// </summary>
internal static string StringLiteralElement {
get {
return ResourceManager.GetString("StringLiteralElement", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to TimeSpanLiteralElement.
/// </summary>
internal static string TimeSpanLiteralElement {
get {
return ResourceManager.GetString("TimeSpanLiteralElement", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to UInt32LiteralElement.
/// </summary>
internal static string UInt32LiteralElement {
get {
return ResourceManager.GetString("UInt32LiteralElement", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to UInt64LiteralElement.
/// </summary>
internal static string UInt64LiteralElement {
get {
return ResourceManager.GetString("UInt64LiteralElement", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to XorElement.
/// </summary>
internal static string XorElement {
get {
return ResourceManager.GetString("XorElement", resourceCulture);
}
}
}
}

207
Resources/ElementNames.resx Normal file
View File

@@ -0,0 +1,207 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="AndOrElement" xml:space="preserve">
<value>AndOrElement</value>
</data>
<data name="ArithmeticElement" xml:space="preserve">
<value>ArithmeticElement</value>
</data>
<data name="BooleanLiteralElement" xml:space="preserve">
<value>BooleanLiteralElement</value>
</data>
<data name="CalcEngineAtom" xml:space="preserve">
<value>CalcEngineAtom</value>
</data>
<data name="CastElement" xml:space="preserve">
<value>CastElement</value>
</data>
<data name="CharLiteralElement" xml:space="preserve">
<value>CharLiteralElement</value>
</data>
<data name="CompareElement" xml:space="preserve">
<value>CompareElement</value>
</data>
<data name="ConditionalElement" xml:space="preserve">
<value>ConditionalElement</value>
</data>
<data name="DateTimeLiteralElement" xml:space="preserve">
<value>DateTimeLiteralElement</value>
</data>
<data name="DoubleLiteralElement" xml:space="preserve">
<value>DoubleLiteralElement</value>
</data>
<data name="ExpressionMemberElement" xml:space="preserve">
<value>ExpressionMemberElement</value>
</data>
<data name="FunctionCallElement" xml:space="preserve">
<value>FunctionCallElement</value>
</data>
<data name="IdentifierElement" xml:space="preserve">
<value>IdentifierElement</value>
</data>
<data name="IndexerElement" xml:space="preserve">
<value>IndexerElement</value>
</data>
<data name="InElement" xml:space="preserve">
<value>InElement</value>
</data>
<data name="Int32Literal" xml:space="preserve">
<value>Int32Literal</value>
</data>
<data name="Int64LiteralElement" xml:space="preserve">
<value>Int64LiteralElement</value>
</data>
<data name="InvocationListElement" xml:space="preserve">
<value>InvocationListElement</value>
</data>
<data name="NegateElement" xml:space="preserve">
<value>NegateElement</value>
</data>
<data name="NotElement" xml:space="preserve">
<value>NotElement</value>
</data>
<data name="NullLiteralElement" xml:space="preserve">
<value>NullLiteralElement</value>
</data>
<data name="RootExpressionElement" xml:space="preserve">
<value>RootExpressionElement</value>
</data>
<data name="ShiftElement" xml:space="preserve">
<value>ShiftElement</value>
</data>
<data name="SingleLiteralElement" xml:space="preserve">
<value>SingleLiteralElement</value>
</data>
<data name="StringLiteralElement" xml:space="preserve">
<value>StringLiteralElement</value>
</data>
<data name="TimeSpanLiteralElement" xml:space="preserve">
<value>TimeSpanLiteralElement</value>
</data>
<data name="UInt32LiteralElement" xml:space="preserve">
<value>UInt32LiteralElement</value>
</data>
<data name="UInt64LiteralElement" xml:space="preserve">
<value>UInt64LiteralElement</value>
</data>
<data name="XorElement" xml:space="preserve">
<value>XorElement</value>
</data>
</root>

View File

@@ -0,0 +1,57 @@
using System.Resources;
namespace Flee.Resources
{
internal class FleeResourceManager
{
private Dictionary<string, ResourceManager> MyResourceManagers;
private static FleeResourceManager OurInstance = new FleeResourceManager();
private FleeResourceManager()
{
MyResourceManagers = new Dictionary<string, ResourceManager>(StringComparer.OrdinalIgnoreCase);
}
private ResourceManager GetResourceManager(string resourceFile)
{
lock (this)
{
ResourceManager rm = null;
if (MyResourceManagers.TryGetValue(resourceFile, out rm) == false)
{
Type t = typeof(FleeResourceManager);
rm = new ResourceManager(string.Format("{0}.{1}", t.Namespace, resourceFile), t.Assembly);
MyResourceManagers.Add(resourceFile, rm);
}
return rm;
}
}
private string GetResourceString(string resourceFile, string key)
{
ResourceManager rm = this.GetResourceManager(resourceFile);
return rm.GetString(key);
}
public string GetCompileErrorString(string key)
{
return this.GetResourceString("CompileErrors", key);
}
public string GetElementNameString(string key)
{
return this.GetResourceString("ElementNames", key);
}
public string GetGeneralErrorString(string key)
{
return this.GetResourceString("GeneralErrors", key);
}
public static FleeResourceManager Instance
{
get { return OurInstance; }
}
}
}

154
Resources/GeneralErrors.Designer.cs generated Normal file
View File

@@ -0,0 +1,154 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Flee.Resources {
using System;
using System.Reflection;
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class GeneralErrors {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal GeneralErrors() {
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Flee.Resources.GeneralErrors", typeof(GeneralErrors).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
/// <summary>
/// Looks up a localized string similar to Cannot determine type of new variable.
/// </summary>
internal static string CannotDetermineNewVariableType {
get {
return ResourceManager.GetString("CannotDetermineNewVariableType", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Could not find a public and static method &apos;{0}&apos; on type &apos;{1}&apos;.
/// </summary>
internal static string CouldNotFindPublicStaticMethodOnType {
get {
return ResourceManager.GetString("CouldNotFindPublicStaticMethodOnType", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Invalid namespace name.
/// </summary>
internal static string InvalidNamespaceName {
get {
return ResourceManager.GetString("InvalidNamespaceName", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to &apos;{0}&apos; is not a valid variable name.
/// </summary>
internal static string InvalidVariableName {
get {
return ResourceManager.GetString("InvalidVariableName", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to The type of the new owner is not assignable to the current owner type.
/// </summary>
internal static string NewOwnerTypeNotAssignableToCurrentOwner {
get {
return ResourceManager.GetString("NewOwnerTypeNotAssignableToCurrentOwner", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Only public and static methods can be imported.
/// </summary>
internal static string OnlyPublicStaticMethodsCanBeImported {
get {
return ResourceManager.GetString("OnlyPublicStaticMethodsCanBeImported", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Type &apos;{0}&apos; is not accessible to the expression.
/// </summary>
internal static string TypeNotAccessibleToExpression {
get {
return ResourceManager.GetString("TypeNotAccessibleToExpression", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Undefined variable &apos;{0}&apos;.
/// </summary>
internal static string UndefinedVariable {
get {
return ResourceManager.GetString("UndefinedVariable", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Value type of &apos;{0}&apos; is not assignable to required type of &apos;{1}&apos;.
/// </summary>
internal static string VariableValueNotAssignableToType {
get {
return ResourceManager.GetString("VariableValueNotAssignableToType", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to A variable with name &apos;{0}&apos; is already defined.
/// </summary>
internal static string VariableWithNameAlreadyDefined {
get {
return ResourceManager.GetString("VariableWithNameAlreadyDefined", resourceCulture);
}
}
}
}

View File

@@ -0,0 +1,150 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="CannotDetermineNewVariableType" xml:space="preserve">
<value>Cannot determine type of new variable</value>
</data>
<data name="CouldNotFindPublicStaticMethodOnType" xml:space="preserve">
<value>Could not find a public and static method '{0}' on type '{1}'</value>
</data>
<data name="InvalidNamespaceName" xml:space="preserve">
<value>Invalid namespace name</value>
</data>
<data name="InvalidVariableName" xml:space="preserve">
<value>'{0}' is not a valid variable name</value>
</data>
<data name="NewOwnerTypeNotAssignableToCurrentOwner" xml:space="preserve">
<value>The type of the new owner is not assignable to the current owner type</value>
</data>
<data name="OnlyPublicStaticMethodsCanBeImported" xml:space="preserve">
<value>Only public and static methods can be imported</value>
</data>
<data name="TypeNotAccessibleToExpression" xml:space="preserve">
<value>Type '{0}' is not accessible to the expression</value>
</data>
<data name="UndefinedVariable" xml:space="preserve">
<value>Undefined variable '{0}'</value>
</data>
<data name="VariableValueNotAssignableToType" xml:space="preserve">
<value>Value type of '{0}' is not assignable to required type of '{1}'</value>
</data>
<data name="VariableWithNameAlreadyDefined" xml:space="preserve">
<value>A variable with name '{0}' is already defined</value>
</data>
</root>

78
Resources/ResourceKeys.cs Normal file
View File

@@ -0,0 +1,78 @@
namespace Flee.Resources
{
/// <summary>
/// Resource keys for compile error messages
/// </summary>
/// <remarks></remarks>
internal class CompileErrorResourceKeys
{
public const string CouldNotResolveType = "CouldNotResolveType";
public const string CannotConvertType = "CannotConvertType";
public const string FirstArgNotBoolean = "FirstArgNotBoolean";
public const string NeitherArgIsConvertibleToTheOther = "NeitherArgIsConvertibleToTheOther";
public const string ValueNotRepresentableInType = "ValueNotRepresentableInType";
public const string SearchArgIsNotKnownCollectionType = "SearchArgIsNotKnownCollectionType";
public const string OperandNotConvertibleToCollectionType = "OperandNotConvertibleToCollectionType";
public const string TypeNotArrayAndHasNoIndexerOfType = "TypeNotArrayAndHasNoIndexerOfType";
public const string ArrayIndexersMustBeOfType = "ArrayIndexersMustBeOfType";
public const string AmbiguousCallOfFunction = "AmbiguousCallOfFunction";
public const string NamespaceCannotBeUsedAsType = "NamespaceCannotBeUsedAsType";
public const string TypeCannotBeUsedAsAnExpression = "TypeCannotBeUsedAsAnExpression";
public const string StaticMemberCannotBeAccessedWithInstanceReference = "StaticMemberCannotBeAccessedWithInstanceReference";
public const string ReferenceToNonSharedMemberRequiresObjectReference = "ReferenceToNonSharedMemberRequiresObjectReference";
public const string FunctionHasNoReturnValue = "FunctionHasNoReturnValue";
public const string OperationNotDefinedForType = "OperationNotDefinedForType";
public const string OperationNotDefinedForTypes = "OperationNotDefinedForTypes";
public const string CannotConvertTypeToExpressionResult = "CannotConvertTypeToExpressionResult";
public const string AmbiguousOverloadedOperator = "AmbiguousOverloadedOperator";
public const string NoIdentifierWithName = "NoIdentifierWithName";
public const string NoIdentifierWithNameOnType = "NoIdentifierWithNameOnType";
public const string IdentifierIsAmbiguous = "IdentifierIsAmbiguous";
public const string IdentifierIsAmbiguousOnType = "IdentifierIsAmbiguousOnType";
public const string CannotReferenceCalcEngineAtomWithoutCalcEngine = "CannotReferenceCalcEngineAtomWithoutCalcEngine";
public const string CalcEngineDoesNotContainAtom = "CalcEngineDoesNotContainAtom";
public const string UndefinedFunction = "UndefinedFunction";
public const string UndefinedFunctionOnType = "UndefinedFunctionOnType";
public const string NoAccessibleMatches = "NoAccessibleMatches";
public const string NoAccessibleMatchesOnType = "NoAccessibleMatchesOnType";
public const string CannotParseType = "CannotParseType";
public const string MultiArrayIndexNotSupported = "MultiArrayIndexNotSupported";
// Grammatica
public const string UnexpectedToken = "UNEXPECTED_TOKEN";
public const string IO = "IO";
public const string UnexpectedEof = "UNEXPECTED_EOF";
public const string UnexpectedChar = "UNEXPECTED_CHAR";
public const string InvalidToken = "INVALID_TOKEN";
public const string Analysis = "ANALYSIS";
public const string LineColumn = "LineColumn";
public const string SyntaxError = "SyntaxError";
private CompileErrorResourceKeys()
{
}
}
internal class GeneralErrorResourceKeys
{
public const string TypeNotAccessibleToExpression = "TypeNotAccessibleToExpression";
public const string VariableWithNameAlreadyDefined = "VariableWithNameAlreadyDefined";
public const string UndefinedVariable = "UndefinedVariable";
public const string InvalidVariableName = "InvalidVariableName";
public const string CannotDetermineNewVariableType = "CannotDetermineNewVariableType";
public const string VariableValueNotAssignableToType = "VariableValueNotAssignableToType";
public const string CouldNotFindPublicStaticMethodOnType = "CouldNotFindPublicStaticMethodOnType";
public const string OnlyPublicStaticMethodsCanBeImported = "OnlyPublicStaticMethodsCanBeImported";
public const string InvalidNamespaceName = "InvalidNamespaceName";
public const string NewOwnerTypeNotAssignableToCurrentOwner = "NewOwnerTypeNotAssignableToCurrentOwner";
private GeneralErrorResourceKeys()
{
}
}
}