16 lines
471 B
C#
16 lines
471 B
C#
|
using Convention.RScript.Parser;
|
|||
|
using System.Diagnostics.CodeAnalysis;
|
|||
|
|
|||
|
namespace Convention.RScript.Runner
|
|||
|
{
|
|||
|
public class EnterNamedSpaceRunner : IRSentenceRunner
|
|||
|
{
|
|||
|
[return: MaybeNull]
|
|||
|
public object Run(ExpressionParser parser, RScriptSentence sentence, RScriptContext context)
|
|||
|
{
|
|||
|
context.CurrentRuntimePointer = context.NamespaceLayer[context.NamespaceLabels[sentence.content]];
|
|||
|
return null;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|