├── .gitignore ├── LL1Parser ├── LL1.grammar ├── LL1_2.grammar ├── Makefile ├── ParserFunctions.cpp ├── ParserFunctions.hpp ├── auxillaryFunctions.hpp ├── input.lex ├── input2.lex └── input3.txt ├── Lexical_Analyser ├── Lex_based │ ├── README.md │ ├── c_language.c │ ├── c_language.h │ ├── c_language.l │ ├── compile.sh │ ├── lex_based_with symbol table │ │ ├── Makefile │ │ ├── hash.c │ │ ├── hash.h │ │ ├── lex.yy.c │ │ ├── lexer.l │ │ ├── scanner.c │ │ ├── test.java │ │ ├── test2.java │ │ ├── tetst.c │ │ └── token.h │ └── lex_c ├── README.md ├── analyzer │ ├── Makefile │ ├── include │ │ ├── FSM.h │ │ ├── LexicalAnalyser.h │ │ ├── RegexParser.h │ │ └── SymbolTable.h │ └── src │ │ ├── FSM.cpp │ │ ├── LexicalAnalyser.cpp │ │ ├── RegexParser.cpp │ │ ├── SymbolTable.cpp │ │ └── main.cpp └── test │ ├── input │ ├── input-old │ ├── input1.output │ ├── input2 │ ├── input3 │ ├── inputForParser │ ├── output │ ├── regex.l │ ├── source.c │ ├── source.c.lex.output │ ├── test.c │ └── test3.c ├── Parser ├── .vimrc.custom.Parser ├── Grammar.cpp ├── Grammar.hpp ├── LL1input.c ├── LL1test.grammar ├── Makefile ├── Makefile_LL1 ├── NonRecursivePredictiveParser.cpp ├── NonRecursivePredictiveParser.hpp ├── ParserFunctions.cpp ├── ParserFunctions.hpp ├── Rule.cpp ├── Rule.hpp ├── TODO ├── Table.cpp ├── Table.hpp ├── Terminal_NonTerminal.cpp ├── Terminal_NonTerminal.hpp ├── TopDownDriver.cpp ├── TopDownDriver.hpp ├── commons.hpp ├── debug ├── leftfactoring.grammar ├── leftfactoring2.grammar ├── leftrecursive.grammar ├── leftrecursive2.grammar ├── test │ └── test.cpp ├── xtoLL1.cpp ├── xtoLL1.hpp └── xtoLL1driver.cpp ├── SLR_Parser ├── LR0Automaton.cpp ├── LR0Automaton.h ├── Makefile ├── SLRParser.cpp ├── SLRParser.h ├── bin │ └── README ├── main.cpp ├── obj │ └── README └── test │ ├── test.grammar │ ├── test.input │ ├── test.lex │ ├── test1.grammar │ ├── test1.input │ ├── test2.grammar │ ├── test2.input │ ├── test3.grammar │ ├── test3.input │ ├── test4.grammar │ ├── test4.input │ ├── test5.grammar │ └── test5.input ├── YACC ├── new │ ├── TAC.l │ ├── TAC.y │ ├── build.sh │ ├── input.txt │ ├── lex.yy.c │ ├── rxgtry.c │ ├── y.tab.c │ └── y.tab.h └── onlyif │ ├── build.sh │ ├── intif.l │ ├── intif.y │ ├── lex.yy.c │ ├── try.txt │ ├── y.tab.c │ └── y.tab.h ├── cleanall.sh └── git_useful_commands /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/.gitignore -------------------------------------------------------------------------------- /LL1Parser/LL1.grammar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/LL1Parser/LL1.grammar -------------------------------------------------------------------------------- /LL1Parser/LL1_2.grammar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/LL1Parser/LL1_2.grammar -------------------------------------------------------------------------------- /LL1Parser/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/LL1Parser/Makefile -------------------------------------------------------------------------------- /LL1Parser/ParserFunctions.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/LL1Parser/ParserFunctions.cpp -------------------------------------------------------------------------------- /LL1Parser/ParserFunctions.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/LL1Parser/ParserFunctions.hpp -------------------------------------------------------------------------------- /LL1Parser/auxillaryFunctions.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/LL1Parser/auxillaryFunctions.hpp -------------------------------------------------------------------------------- /LL1Parser/input.lex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/LL1Parser/input.lex -------------------------------------------------------------------------------- /LL1Parser/input2.lex: -------------------------------------------------------------------------------- 1 | id 2 | -------------------------------------------------------------------------------- /LL1Parser/input3.txt: -------------------------------------------------------------------------------- 1 | a b 2 | -------------------------------------------------------------------------------- /Lexical_Analyser/Lex_based/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Lexical_Analyser/Lex_based/README.md -------------------------------------------------------------------------------- /Lexical_Analyser/Lex_based/c_language.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Lexical_Analyser/Lex_based/c_language.c -------------------------------------------------------------------------------- /Lexical_Analyser/Lex_based/c_language.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Lexical_Analyser/Lex_based/c_language.h -------------------------------------------------------------------------------- /Lexical_Analyser/Lex_based/c_language.l: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Lexical_Analyser/Lex_based/c_language.l -------------------------------------------------------------------------------- /Lexical_Analyser/Lex_based/compile.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Lexical_Analyser/Lex_based/compile.sh -------------------------------------------------------------------------------- /Lexical_Analyser/Lex_based/lex_based_with symbol table/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Lexical_Analyser/Lex_based/lex_based_with symbol table/Makefile -------------------------------------------------------------------------------- /Lexical_Analyser/Lex_based/lex_based_with symbol table/hash.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Lexical_Analyser/Lex_based/lex_based_with symbol table/hash.c -------------------------------------------------------------------------------- /Lexical_Analyser/Lex_based/lex_based_with symbol table/hash.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Lexical_Analyser/Lex_based/lex_based_with symbol table/hash.h -------------------------------------------------------------------------------- /Lexical_Analyser/Lex_based/lex_based_with symbol table/lex.yy.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Lexical_Analyser/Lex_based/lex_based_with symbol table/lex.yy.c -------------------------------------------------------------------------------- /Lexical_Analyser/Lex_based/lex_based_with symbol table/lexer.l: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Lexical_Analyser/Lex_based/lex_based_with symbol table/lexer.l -------------------------------------------------------------------------------- /Lexical_Analyser/Lex_based/lex_based_with symbol table/scanner.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Lexical_Analyser/Lex_based/lex_based_with symbol table/scanner.c -------------------------------------------------------------------------------- /Lexical_Analyser/Lex_based/lex_based_with symbol table/test.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Lexical_Analyser/Lex_based/lex_based_with symbol table/test.java -------------------------------------------------------------------------------- /Lexical_Analyser/Lex_based/lex_based_with symbol table/test2.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Lexical_Analyser/Lex_based/lex_based_with symbol table/test2.java -------------------------------------------------------------------------------- /Lexical_Analyser/Lex_based/lex_based_with symbol table/tetst.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Lexical_Analyser/Lex_based/lex_based_with symbol table/tetst.c -------------------------------------------------------------------------------- /Lexical_Analyser/Lex_based/lex_based_with symbol table/token.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Lexical_Analyser/Lex_based/lex_based_with symbol table/token.h -------------------------------------------------------------------------------- /Lexical_Analyser/Lex_based/lex_c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Lexical_Analyser/Lex_based/lex_c -------------------------------------------------------------------------------- /Lexical_Analyser/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Lexical_Analyser/README.md -------------------------------------------------------------------------------- /Lexical_Analyser/analyzer/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Lexical_Analyser/analyzer/Makefile -------------------------------------------------------------------------------- /Lexical_Analyser/analyzer/include/FSM.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Lexical_Analyser/analyzer/include/FSM.h -------------------------------------------------------------------------------- /Lexical_Analyser/analyzer/include/LexicalAnalyser.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Lexical_Analyser/analyzer/include/LexicalAnalyser.h -------------------------------------------------------------------------------- /Lexical_Analyser/analyzer/include/RegexParser.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Lexical_Analyser/analyzer/include/RegexParser.h -------------------------------------------------------------------------------- /Lexical_Analyser/analyzer/include/SymbolTable.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Lexical_Analyser/analyzer/include/SymbolTable.h -------------------------------------------------------------------------------- /Lexical_Analyser/analyzer/src/FSM.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Lexical_Analyser/analyzer/src/FSM.cpp -------------------------------------------------------------------------------- /Lexical_Analyser/analyzer/src/LexicalAnalyser.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Lexical_Analyser/analyzer/src/LexicalAnalyser.cpp -------------------------------------------------------------------------------- /Lexical_Analyser/analyzer/src/RegexParser.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Lexical_Analyser/analyzer/src/RegexParser.cpp -------------------------------------------------------------------------------- /Lexical_Analyser/analyzer/src/SymbolTable.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Lexical_Analyser/analyzer/src/SymbolTable.cpp -------------------------------------------------------------------------------- /Lexical_Analyser/analyzer/src/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Lexical_Analyser/analyzer/src/main.cpp -------------------------------------------------------------------------------- /Lexical_Analyser/test/input: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Lexical_Analyser/test/input -------------------------------------------------------------------------------- /Lexical_Analyser/test/input-old: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Lexical_Analyser/test/input-old -------------------------------------------------------------------------------- /Lexical_Analyser/test/input1.output: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Lexical_Analyser/test/input1.output -------------------------------------------------------------------------------- /Lexical_Analyser/test/input2: -------------------------------------------------------------------------------- 1 | (a|b|c|d|e\f)* TOKEN 2 | -------------------------------------------------------------------------------- /Lexical_Analyser/test/input3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Lexical_Analyser/test/input3 -------------------------------------------------------------------------------- /Lexical_Analyser/test/inputForParser: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Lexical_Analyser/test/inputForParser -------------------------------------------------------------------------------- /Lexical_Analyser/test/output: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Lexical_Analyser/test/output -------------------------------------------------------------------------------- /Lexical_Analyser/test/regex.l: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Lexical_Analyser/test/regex.l -------------------------------------------------------------------------------- /Lexical_Analyser/test/source.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Lexical_Analyser/test/source.c -------------------------------------------------------------------------------- /Lexical_Analyser/test/source.c.lex.output: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Lexical_Analyser/test/source.c.lex.output -------------------------------------------------------------------------------- /Lexical_Analyser/test/test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Lexical_Analyser/test/test.c -------------------------------------------------------------------------------- /Lexical_Analyser/test/test3.c: -------------------------------------------------------------------------------- 1 | int ab 2 | -------------------------------------------------------------------------------- /Parser/.vimrc.custom.Parser: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Parser/.vimrc.custom.Parser -------------------------------------------------------------------------------- /Parser/Grammar.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Parser/Grammar.cpp -------------------------------------------------------------------------------- /Parser/Grammar.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Parser/Grammar.hpp -------------------------------------------------------------------------------- /Parser/LL1input.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Parser/LL1input.c -------------------------------------------------------------------------------- /Parser/LL1test.grammar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Parser/LL1test.grammar -------------------------------------------------------------------------------- /Parser/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Parser/Makefile -------------------------------------------------------------------------------- /Parser/Makefile_LL1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Parser/Makefile_LL1 -------------------------------------------------------------------------------- /Parser/NonRecursivePredictiveParser.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Parser/NonRecursivePredictiveParser.cpp -------------------------------------------------------------------------------- /Parser/NonRecursivePredictiveParser.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Parser/NonRecursivePredictiveParser.hpp -------------------------------------------------------------------------------- /Parser/ParserFunctions.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Parser/ParserFunctions.cpp -------------------------------------------------------------------------------- /Parser/ParserFunctions.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Parser/ParserFunctions.hpp -------------------------------------------------------------------------------- /Parser/Rule.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Parser/Rule.cpp -------------------------------------------------------------------------------- /Parser/Rule.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Parser/Rule.hpp -------------------------------------------------------------------------------- /Parser/TODO: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Parser/TODO -------------------------------------------------------------------------------- /Parser/Table.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Parser/Table.cpp -------------------------------------------------------------------------------- /Parser/Table.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Parser/Table.hpp -------------------------------------------------------------------------------- /Parser/Terminal_NonTerminal.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Parser/Terminal_NonTerminal.cpp -------------------------------------------------------------------------------- /Parser/Terminal_NonTerminal.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Parser/Terminal_NonTerminal.hpp -------------------------------------------------------------------------------- /Parser/TopDownDriver.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Parser/TopDownDriver.cpp -------------------------------------------------------------------------------- /Parser/TopDownDriver.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Parser/TopDownDriver.hpp -------------------------------------------------------------------------------- /Parser/commons.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Parser/commons.hpp -------------------------------------------------------------------------------- /Parser/debug: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Parser/debug -------------------------------------------------------------------------------- /Parser/leftfactoring.grammar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Parser/leftfactoring.grammar -------------------------------------------------------------------------------- /Parser/leftfactoring2.grammar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Parser/leftfactoring2.grammar -------------------------------------------------------------------------------- /Parser/leftrecursive.grammar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Parser/leftrecursive.grammar -------------------------------------------------------------------------------- /Parser/leftrecursive2.grammar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Parser/leftrecursive2.grammar -------------------------------------------------------------------------------- /Parser/test/test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Parser/test/test.cpp -------------------------------------------------------------------------------- /Parser/xtoLL1.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Parser/xtoLL1.cpp -------------------------------------------------------------------------------- /Parser/xtoLL1.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Parser/xtoLL1.hpp -------------------------------------------------------------------------------- /Parser/xtoLL1driver.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/Parser/xtoLL1driver.cpp -------------------------------------------------------------------------------- /SLR_Parser/LR0Automaton.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/SLR_Parser/LR0Automaton.cpp -------------------------------------------------------------------------------- /SLR_Parser/LR0Automaton.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/SLR_Parser/LR0Automaton.h -------------------------------------------------------------------------------- /SLR_Parser/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/SLR_Parser/Makefile -------------------------------------------------------------------------------- /SLR_Parser/SLRParser.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/SLR_Parser/SLRParser.cpp -------------------------------------------------------------------------------- /SLR_Parser/SLRParser.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/SLR_Parser/SLRParser.h -------------------------------------------------------------------------------- /SLR_Parser/bin/README: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /SLR_Parser/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/SLR_Parser/main.cpp -------------------------------------------------------------------------------- /SLR_Parser/obj/README: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /SLR_Parser/test/test.grammar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/SLR_Parser/test/test.grammar -------------------------------------------------------------------------------- /SLR_Parser/test/test.input: -------------------------------------------------------------------------------- 1 | a * ( b + c ) 2 | -------------------------------------------------------------------------------- /SLR_Parser/test/test.lex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/SLR_Parser/test/test.lex -------------------------------------------------------------------------------- /SLR_Parser/test/test1.grammar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/SLR_Parser/test/test1.grammar -------------------------------------------------------------------------------- /SLR_Parser/test/test1.input: -------------------------------------------------------------------------------- 1 | if b then a 2 | -------------------------------------------------------------------------------- /SLR_Parser/test/test2.grammar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/SLR_Parser/test/test2.grammar -------------------------------------------------------------------------------- /SLR_Parser/test/test2.input: -------------------------------------------------------------------------------- 1 | + test 2 | -------------------------------------------------------------------------------- /SLR_Parser/test/test3.grammar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/SLR_Parser/test/test3.grammar -------------------------------------------------------------------------------- /SLR_Parser/test/test3.input: -------------------------------------------------------------------------------- 1 | + test 2 | -------------------------------------------------------------------------------- /SLR_Parser/test/test4.grammar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/SLR_Parser/test/test4.grammar -------------------------------------------------------------------------------- /SLR_Parser/test/test4.input: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/SLR_Parser/test/test4.input -------------------------------------------------------------------------------- /SLR_Parser/test/test5.grammar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/SLR_Parser/test/test5.grammar -------------------------------------------------------------------------------- /SLR_Parser/test/test5.input: -------------------------------------------------------------------------------- 1 | s + r 2 | -------------------------------------------------------------------------------- /YACC/new/TAC.l: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/YACC/new/TAC.l -------------------------------------------------------------------------------- /YACC/new/TAC.y: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/YACC/new/TAC.y -------------------------------------------------------------------------------- /YACC/new/build.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/YACC/new/build.sh -------------------------------------------------------------------------------- /YACC/new/input.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/YACC/new/input.txt -------------------------------------------------------------------------------- /YACC/new/lex.yy.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/YACC/new/lex.yy.c -------------------------------------------------------------------------------- /YACC/new/rxgtry.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/YACC/new/rxgtry.c -------------------------------------------------------------------------------- /YACC/new/y.tab.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/YACC/new/y.tab.c -------------------------------------------------------------------------------- /YACC/new/y.tab.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/YACC/new/y.tab.h -------------------------------------------------------------------------------- /YACC/onlyif/build.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/YACC/onlyif/build.sh -------------------------------------------------------------------------------- /YACC/onlyif/intif.l: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/YACC/onlyif/intif.l -------------------------------------------------------------------------------- /YACC/onlyif/intif.y: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/YACC/onlyif/intif.y -------------------------------------------------------------------------------- /YACC/onlyif/lex.yy.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/YACC/onlyif/lex.yy.c -------------------------------------------------------------------------------- /YACC/onlyif/try.txt: -------------------------------------------------------------------------------- 1 | if(k+8) then k=18;else c=s; 2 | -------------------------------------------------------------------------------- /YACC/onlyif/y.tab.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/YACC/onlyif/y.tab.c -------------------------------------------------------------------------------- /YACC/onlyif/y.tab.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/YACC/onlyif/y.tab.h -------------------------------------------------------------------------------- /cleanall.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rajatkhanduja/Compiler/HEAD/cleanall.sh -------------------------------------------------------------------------------- /git_useful_commands: -------------------------------------------------------------------------------- 1 | git hash-object 2 | --------------------------------------------------------------------------------