Skip to content

Commit

Permalink
- Added some actions to the ANTLR3 grammar
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@5964 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Aug 27, 2010
1 parent 1ceb951 commit 57979b0
Show file tree
Hide file tree
Showing 2 changed files with 185 additions and 89 deletions.
8 changes: 6 additions & 2 deletions Parser/Makefile
@@ -1,3 +1,7 @@
RMLHOME=/usr
COMPILERHOME=../Compiler/
LIBRML=-lrml -lm
ANTLRCMD=java -cp ./antlr-3.2/lib/antlr-3.2.jar org.antlr.Tool -report

all: libantlr3.a ModelicaLexer.c ModelicaParser.c ModelicaParser

Expand All @@ -9,10 +13,10 @@ libantlr3.a: antlr-3.2/runtime/C/src/* antlr-3.2/runtime/C/include/*
rm -f *.o

ModelicaLexer.c ModelicaParser.c: Modelica.g
./runantlr.sh
$(ANTLRCMD) $<

ModelicaParser: libantlr3.a ModelicaLexer.c ModelicaParser.c
gcc -O3 -o ModelicaParser *.c -I. -Iantlr-3.2/runtime/C -Iantlr-3.2/runtime/C/include -L. -lantlr3
gcc -O3 -o ModelicaParser *.c -I$(COMPILERHOME) -L$(RMLHOME)/lib/plain/ $(LIBRML) -I$(RMLHOME)/include/plain -I. -Iantlr-3.2/runtime/C -Iantlr-3.2/runtime/C/include -L. -lantlr3
mkdir -p Release
cp -f ModelicaParser Release/ModelicaParser

Expand Down

0 comments on commit 57979b0

Please sign in to comment.