Exemplo n.º 1
0
				public Objects.L20nObject Eval()
				{
					var identifiers = new Objects.L20nObject[m_Identifiers.Count];
					for (int i = 0; i < identifiers.Length; ++i)
						identifiers [i] = m_Identifiers [i].Eval();

					return new Objects.PropertyExpression(identifiers).Optimize();
				}
Exemplo n.º 2
0
				public Objects.L20nObject Eval()
				{
					var indeces = new Objects.L20nObject[m_Indeces.Count];
					for (int i = 0; i < indeces.Length; ++i)
						indeces [i] = m_Indeces [i].Eval();
					
					return new Objects.Index(indeces).Optimize();
				}
Exemplo n.º 3
0
				public Objects.L20nObject Eval()
				{
					var name = ((Objects.Identifier)m_Name.Eval()).Value;
					var parameters = new Objects.L20nObject[m_Parameters.Count];
					for (int i = 0; i < parameters.Length; ++i)
						parameters [i] = m_Parameters [i].Eval();

					return new Objects.CallExpression(name, parameters).Optimize();
				}
Exemplo n.º 4
0
				public Objects.L20nObject Eval()
				{
					var expressions = new Objects.L20nObject[m_Expressions.Count];
					for (int i = 0; i < expressions.Length; ++i)
						expressions [i] = m_Expressions [i].Eval();

					var value = m_Value.Trim();
					value = value.Replace(
						DummyNewlineWhitespaceCharacter.ToString(),
						value.Contains(" ") ? " " : "");
					value = value.TrimEnd();

					return new Objects.StringValue(value, expressions).Optimize();
				}