public BaseEncodeGraphCommand(ITokenExpressionSeries searchTarget, OilexerGrammarTokens.StringLiteralToken stringBase, OilexerGrammarTokens.NumberLiteral digits, int column, int line, long position) : base(new ITokenExpressionSeries[1] { searchTarget }, column, line, position) { this.encodeTarget = searchTarget; this.digits = digits; this.stringBase = stringBase; }
public InlinedBaseEncodeGraphCommand(IBaseEncodeGraphCommand source, OilexerGrammarTokens.NumberLiteral numericBase, IOilexerGrammarTokenEntry sourceRoot, InlinedTokenEntry root, IDictionary <ITokenItem, ITokenItem> oldNewLookup) : base(OilexerGrammarInliningCore.Inline(source.EncodeTarget, sourceRoot, root, oldNewLookup), numericBase, source.Digits, source.Column, source.Line, source.Position) { this.Source = source; this.SourceRoot = sourceRoot; this.Root = root; this.RepeatOptions = source.RepeatOptions; this.Name = source.Name; this.SiblingAmbiguity = source.SiblingAmbiguity; }
/// <summary> /// Creates a new <see cref="PreprocessorCExp"/> with the <paramref name="number"/>, /// <paramref name="column"/>, <paramref name="line"/>, and <paramref name="position"/>. /// </summary> /// <param name="number">The <see cref="System.Int32"/> represented by the <see cref="PreprocessorCExp"/></param> /// <param name="column">The column at the current <paramref name="line"/> the /// <see cref="PreprocessorCExp"/> was declared at. </param> /// <param name="line">The line index the <see cref="PreprocessorCExp"/> was declared at.</param> /// <param name="position">The position in the file the <see cref="PreprocessorCExp"/> /// was declared at.</param> public PreprocessorCPrimary(OilexerGrammarTokens.NumberLiteral number, int column, int line, long position) : base(column, line, position) { this.rule = 5; this.number = number; }