ParserState

Namespace: Irony
We found 10 examples in language CSharp for this search. You will see 53 fragments of code.

Other methods


        public abstract ParserState AnyChar(char ch, ParserContext context);
        public abstract ParserState Comma(ParserContext context);
        public abstract ParserState Quote(ParserContext context);
        public abstract ParserState EndOfLine(ParserContext context);
        public override ParserState AnyChar(char ch, ParserContext context)
        {
            context.AddChar(ch);
            return ValueState;
        }

        public override ParserState Comma(ParserContext context)
        {
            context.AddValue();
            return ValueStartState;
        }


        public abstract ParserState AnyChar(char ch, ParserContext context);
        public abstract ParserState Comma(ParserContext context);
        public abstract ParserState Quote(ParserContext context);
        public abstract ParserState EndOfLine(ParserContext context);
        public override ParserState AnyChar(char ch, ParserContext context)
        {
            context.AddChar(ch);
            return ValueState;
        }

        public override ParserState Comma(ParserContext context)
        {
            context.AddValue();
            return ValueStartState;
        }


        private List<VbaCodeIssue> GetModuleExceptions(RubberduckParserState parserState)
        {
            return parserState.ModuleExceptions.Select(x => new VbaCodeIssue(x.Item2, _fileName, x.Item1.CodeModule.Name)).ToList();
        }

        private static IEnumerable<IInspectionResult> Inspect<TInspection>(RubberduckParserState parserState, ResultFetchMethod resultFetchMethod)
            where TInspection : IInspection
        {
            IEnumerable<IInspectionResult> inspectionResults = InspectionFactory.Create<TInspection>(parserState, resultFetchMethod).GetInspectionResults();

            return inspectionResults.DistinctBy(x => x.Description);
        }


			public abstract ParserState AnyChar(char ch, ParserContext context);
			public abstract ParserState Comma(ParserContext context);
			public abstract ParserState Quote(ParserContext context);
			public abstract ParserState EndOfLine(ParserContext context);
			public override ParserState AnyChar(char ch, ParserContext context)
			{
				context.AddChar(ch);
				return ValueState;
			}

			public override ParserState Comma(ParserContext context)
			{
				context.AddValue();
				return ValueStartState;
			}


            public abstract ParserState AnyChar(char ch, ParserContext context);
            public abstract ParserState Comma(ParserContext context);
            public abstract ParserState Quote(ParserContext context);
            public abstract ParserState EndOfLine(ParserContext context);
            public override ParserState AnyChar(char ch, ParserContext context)
            {
                context.AddChar(ch);
                return ValueState;
            }

            public override ParserState Comma(ParserContext context)
            {
                context.AddValue();
                return ValueStartState;
            }


        private static ParserState[] r(ParserState low, ParserState high)
        {
            var c = high - low;
            var arr = new ParserState [c];
            while (c-- > 0)
                arr[c] = --high;
            return arr;
        }

            public void Add(int code, ParserState state, ParserAction action, ParserState next = ParserState.Invalid)
            {
                table[((int) state << 8) | code] =
                    (byte) (((int) action << 4) | (int) (next == ParserState.Invalid ? state : next));
            }

            public void Add(int[] codes, ParserState state, ParserAction action, ParserState next = ParserState.Invalid)
            {
                foreach (var c in codes)
                    Add(c, state, action, next);
            }


			public abstract ParserState AnyChar(char ch, ParserContext context);
			public abstract ParserState Comma(ParserContext context);
			public abstract ParserState Quote(ParserContext context);
			public abstract ParserState EndOfLine(ParserContext context);
			public override ParserState AnyChar(char ch, ParserContext context)
			{
				context.AddChar(ch);
				return ValueState;
			}

			public override ParserState Comma(ParserContext context)
			{
				context.AddValue();
				return ValueStartState;
			}


			public abstract ParserState AnyChar(char ch, ParserContext context);
			public abstract ParserState Comma(ParserContext context);
			public abstract ParserState Quote(ParserContext context);
			public abstract ParserState EndOfLine(ParserContext context);
			public override ParserState AnyChar(char ch, ParserContext context)
			{
				context.AddChar(ch);
				return ValueState;
			}

			public override ParserState Comma(ParserContext context)
			{
				context.AddValue();
				return ValueStartState;
			}


			public abstract ParserState AnyChar(char ch, ParserContext context);
			public abstract ParserState Comma(ParserContext context);
			public abstract ParserState Quote(ParserContext context);
			public abstract ParserState EndOfLine(ParserContext context);
			public override ParserState AnyChar(char ch, ParserContext context)
			{
				context.AddChar(ch);
				return ValueState;
			}

			public override ParserState Comma(ParserContext context)
			{
				context.AddValue();
				return ValueStartState;
			}


			public abstract ParserState AnyChar(char ch, ParserContext context);
			public abstract ParserState Comma(ParserContext context);
			public abstract ParserState Quote(ParserContext context);
			public abstract ParserState EndOfLine(ParserContext context);
			public override ParserState AnyChar(char ch, ParserContext context)
			{
				context.AddChar(ch);
				return ValueState;
			}

			public override ParserState Comma(ParserContext context)
			{
				context.AddValue();
				return ValueStartState;
			}

Irony.Parsing.ParserState : Object

Fields :

public String Name
public ParserActionTable Actions
public ParserAction DefaultAction
public TerminalSet ExpectedTerminals
public StringSet ReportedExpectedSet
public Int32 CustomFlags

Constructors :

public ParserState(String name = )

Methods :

public Void ClearData()
public String ToString()
public Int32 GetHashCode()
public Boolean CustomFlagIsSet(Int32 flag = )
public Type GetType()
public Boolean Equals(Object obj = )

Other methods

Other methods