Searched refs:tokens (Results 1 – 6 of 6) sorted by relevance
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Extensions/UserInterface/Commands/ |
| D | ExecuteCommand.cs | 33 public virtual void Run(ICommandInteraction writer, params Token[] tokens) in Run() argument 35 if(tokens.Length == 1 && tokens[0] is VariableToken) in Run() 37 … var macroLines = GetVariable(tokens[0] as VariableToken).GetObjectValue().ToString().Split('\n'); in Run() 48 if(!monitor.ParseTokens(tokens, writer)) in Run()
|
| D | StringCommand.cs | 23 public void Run(ICommandInteraction writer, Token[] tokens) in Run() argument 25 … writer.WriteLine("\"" + string.Join(" ", tokens.Select(x=>x.GetObjectValue().ToString())) + "\""); in Run()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Extensions/MonitorTests/ |
| D | TokenizerTests.cs | 225 var tokens = result.Tokens.ToArray(); in AssertTokenizationResult() 226 Assert.AreEqual(tokens.Length, types.Length); in AssertTokenizationResult() 227 for(var i = 0; i < tokens.Length; ++i) in AssertTokenizationResult() 229 Assert.AreSame(tokens[i].GetType(), types[i]); in AssertTokenizationResult() 238 var tokens = result.Tokens.ToArray(); in AssertTokenizationTypes() 239 Assert.AreEqual(tokens.Length, types.Length); in AssertTokenizationTypes() 240 for(var i = 0; i < tokens.Length; ++i) in AssertTokenizationTypes() 242 Assert.AreSame(tokens[i].GetType(), types[i]); in AssertTokenizationTypes() 248 var tokens = result.Tokens.ToArray(); in AssertTokenizationValues() 249 Assert.AreEqual(tokens.Length, values.Length); in AssertTokenizationValues() [all …]
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Extensions/UserInterface/Tokenizer/ |
| D | TokenizationResult.cs | 21 …public TokenizationResult(int unmatchedCharactersLeft, IEnumerable<Token> tokens, RecoverableExcep… in TokenizationResult() argument 24 Tokens = tokens; in TokenizationResult()
|
| D | Tokenizer.cs | 88 tokens = new List<InternalToken>(); in Tokenizer() 98 foreach(var proposition in tokens) in Tokenize() 135 tokens.Add(new InternalToken(applicabilityCondition, factory)); in AddToken() 138 private readonly List<InternalToken> tokens; field in Antmicro.Renode.UserInterface.Tokenizer.Tokenizer
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Extensions/UserInterface/ |
| D | Monitor.cs | 351 var tokens = tokensToParse.ToList(); in ParseTokens() 352 foreach(var token in tokens) in ParseTokens() 504 var tokens = Tokenize(cmd, writer); in Parse() 505 if(tokens == null) in Parse() 510 foreach(var singleCommand in tokens.Tokens in Parse() 742 private IList<Token> ExpandVariables(IEnumerable<Token> tokens) in ExpandVariables() argument 744 …return tokens.Select(x => x is VariableToken ? ExpandVariable(x as VariableToken, variables) ?? x … in ExpandVariables()
|