public TupleOfTypesParser(InternalParserContext context, bool boundedBuRoundBrackets)
            : base(context)
        {
            _boundedBuRoundBrackets = boundedBuRoundBrackets;

            if (boundedBuRoundBrackets)
            {
                _state = State.Init;
            }
            else
            {
                _state = State.WaitForTypeIdentifier;
            }
        }
示例#2
0
        public InternalParserContext Fork()
        {
            var result = new InternalParserContext();

            result._context          = _context;
            result._lexer            = _lexer.Fork();
            result._recoveriesTokens = new Queue <Token>(_recoveriesTokens.ToList());
            result.CodeFile          = CodeFile;
            result._codeEntities     = new Stack <CodeEntity>(_codeEntities.Select(p => p.Clone()).ToList());

            result._defaultSettingsOfCodeEntity = new Stack <DefaultSettingsOfCodeEntity>(_defaultSettingsOfCodeEntity.Select(p => p.Clone()).ToList());
            result._currentDefaultSetings       = result._defaultSettingsOfCodeEntity.Peek();

            return(result);
        }
示例#3
0
        public LogicalExpressionParser(InternalParserContext context, bool isGroup)
            : base(context)
        {
            if (isGroup)
            {
                _terminatingTokenKindList = new List <TokenKind> {
                    TokenKind.CloseFactBracket
                };
            }
            else
            {
                _terminatingTokenKindList = new List <TokenKind> {
                    TokenKind.Comma, TokenKind.CloseRoundBracket
                };
            }

            _isGroup = isGroup;
        }
示例#4
0
 public FunctionBodyParser(InternalParserContext context)
     : base(context)
 {
 }
示例#5
0
 public WorldPaser(InternalParserContext context)
     : base(context)
 {
 }
示例#6
0
 public TryStatementParser(InternalParserContext context)
     : base(context)
 {
 }
示例#7
0
 public LogicalQueryOperationParser(InternalParserContext context)
     : base(context)
 {
 }
示例#8
0
 public ClassPaser(InternalParserContext context)
     : base(context)
 {
 }
 public InlineTriggerParser(InternalParserContext context)
     : base(context)
 {
 }
示例#10
0
 public SourceCodeParser(InternalParserContext context)
     : base(context)
 {
 }
 public NamedFunctionParser(InternalParserContext context)
     : base(context)
 {
 }
示例#12
0
 public LogicalExpressionParser(InternalParserContext context, List <TokenKind> terminatingTokenKindList)
     : base(context)
 {
     _terminatingTokenKindList = terminatingTokenKindList;
 }
示例#13
0
 public LogicalExpressionParser(InternalParserContext context, TokenKind terminatingTokenKind)
     : this(context, new List <TokenKind>() { terminatingTokenKind })
 {
 }
示例#14
0
 public LogicalExpressionParser(InternalParserContext context)
     : this(context, new List <TokenKind> {
     TokenKind.Comma, TokenKind.CloseRoundBracket
 })
 {
 }
示例#15
0
 public void Assing(InternalParserContext context)
 {
     _lexer.Assing(context._lexer);
     _recoveriesTokens = new Queue <Token>(context._recoveriesTokens);
 }
 public InlineRangeParser(InternalParserContext context)
     : base(context)
 {
 }
示例#17
0
 public AppPaser(InternalParserContext context)
     : base(context)
 {
 }
示例#18
0
 public LogicalQueryParser(InternalParserContext context)
     : base(context)
 {
 }
 protected BaseInternalParser(InternalParserContext context)
 {
     _context = context;
     _logger  = context.Logger;
 }
 public InlineTriggerBindingVariablesParser(InternalParserContext context)
     : base(context)
 {
 }
示例#21
0
 protected RulePartParser(InternalParserContext context, TokenKind terminatingTokenKind)
     : base(context)
 {
     _terminatingTokenKind = terminatingTokenKind;
 }
示例#22
0
 public InheritanceParser(InternalParserContext context, StrongIdentifierValue subName)
     : base(context)
 {
     _subName = subName;
 }
 public EntityConditionParser(InternalParserContext context)
     : base(context)
 {
 }
 public LogicalQueryAsCodeEntityParser(InternalParserContext context)
     : base(context)
 {
 }
 public SecondaryRulePartParser(InternalParserContext context, TokenKind terminatingTokenKind)
     : base(context, terminatingTokenKind)
 {
 }
示例#26
0
 public NullParser(InternalParserContext context)
     : base(context)
 {
 }
 public CodeExpressionStatementParser(InternalParserContext context)
     : base(context)
 {
 }
 public CallingFunctionExpressionParser(InternalParserContext context)
     : base(context)
 {
 }
 public LinguisticVariableParser(InternalParserContext context)
     : base(context)
 {
 }
示例#30
0
 public NumberParser(InternalParserContext context, bool createLogicalValue = false)
     : base(context)
 {
     _createLogicalValue = createLogicalValue;
 }