Commits

PioneerAxon committed 9505268

Remove unwanted files

Removed: main.c, Makefile as they are not needed.

  • Participants
  • Parent commits f70375c

Comments (0)

Files changed (2)

File src/Makefile

-CC=gcc
-CFLAGS=-c -Wall `pkg-config --cflags glib-2.0` -I.
-
-math-parser: prelexer.o lexer.o parser.o parserfunc.o main.o
-	$(CC) -o math-parser prelexer.o lexer.o parser.o parserfunc.o main.o `pkg-config --libs glib-2.0`
-
-prelexer.o: prelexer.c prelexer.h
-	$(CC) $(CFLAGS) prelexer.c
-
-lexer.o: lexer.c lexer.h
-	$(CC) $(CFLAGS) lexer.c
-
-parser.o: parser.c parser.h
-	$(CC) $(CFLAGS) parser.c
-
-parserfunc.o: parserfunc.c parserfunc.h
-	$(CC) $(CFLAGS) parserfunc.c
-
-main.o: main.c prelexer.h
-	$(CC) $(CFLAGS) main.c
-
-clean:
-	rm -rf *.o math-parser
-

File src/main.c

-#include<stdio.h>
-#include<prelexer.h>
-#include<lexer.h>
-#include<parser.h>
-#define MAIN_C_MAX_BUFF 4096
-
-int main()
-{
-	gchar str[MAIN_C_MAX_BUFF];
-	ParserState * ps;
-	scanf ("%[^\n]",str);
-	ps = p_create_parser (str);
-	p_parse (ps);
-	p_destroy_parser (ps);
-	return 0;
-}