예제 #1
0
        public override object VisitJson(
            JimlParser.JsonContext context)
        {
            var composer = (IComposer)Visit(
                context.value());

            return(new Expression(
                       composer));
        }
예제 #2
0
파일: Jiml.cs 프로젝트: ifs-and-whiles/jiml
        private static void ThrowIfAnyRecognitionExceptionFound(JimlParser.JsonContext tree)
        {
            var recognitionExceptions = RecognitionErrors
                                        .FindAll(tree);

            if (recognitionExceptions.Any())
            {
                throw new AntlrException(
                          $"Following problems were found while parsing the expression: {tree}", recognitionExceptions);
            }
        }