Ejemplo n.º 1
0
        public FSharpParser()
            : base()
        {
            grammar = new FSharpGrammar();
            parser = new Parser(new LanguageData(grammar));

        }
        public MetadataExtractor(string lang, string fname)
        {
            language = lang;
            parseTree = null;
            if (String.Compare(lang, "c#") == 0)
                grammar = new CSharpGrammar();
            else if (String.Compare(lang, "f#") == 0)
                grammar = new FSharpGrammar();
            else
            {
                throw new Exception("The grammar name you've typed is not supported");

            }
            parser = new Parser(new LanguageData(grammar));
            srcFilename = fname;
            controllerInfo = new ControllersTable();
            infobyFiles = new Dictionary<string, ControllersTable>();
        }