Skip to content
Snippets Groups Projects
Commit f6e07f95 authored by Raphaël Lallement's avatar Raphaël Lallement
Browse files

[wip/antlr-2.7.7] Add antlr-2.7.7 a parser-generator tool

parent 6b53349d
No related branches found
No related tags found
No related merge requests found
Antlr2 is a tool to generate parsers
For more details see : http://www.antlr2.org/doc/index.html
# robotpkg Makefile for: devel/antlr2
# Created: Raphaël Lallement on Mon, 07 Jul 201
#
PKGNAME= antlr-${VERSION}
DISTNAME= antlr-${VERSION}
VERSION= 2.7.7
MASTER_SITES= http://www.antlr2.org/download.html/
CATEGORIES= devel
HOMEPAGE= http://www.antlr2.org
MAINTAINER= rlalleme@laas.fr
COMMENT= Antlr2 is a tool to generate parsers
LICENSE= antlr2
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--with-make=${MAKE}
CONFIGURE_ARGS+=--with-java=${JAVA}
CONFIGURE_ARGS+=--with-jar=${JAR}
CONFIGURE_ARGS+=--with-javac=${JAVAC}
CONFIGURE_ARGS+=--with-pyhton=${PYTHON}
CONFIGURE_ARGS+=--disable-csharp
include ../../mk/language/c.mk
include ../../mk/language/c++.mk
include ../../mk/sysdep/python.mk
include ../../mk/language/java.mk
include ../../mk/robotpkg.mk
@comment Mon Jul 8 17:31:17 CEST 2013
bin/antlr
bin/antlr-config
include/antlr/ANTLRException.hpp
include/antlr/ANTLRUtil.hpp
include/antlr/AST.hpp
include/antlr/ASTArray.hpp
include/antlr/ASTFactory.hpp
include/antlr/ASTNULLType.hpp
include/antlr/ASTPair.hpp
include/antlr/ASTRefCount.hpp
include/antlr/BaseAST.hpp
include/antlr/BitSet.hpp
include/antlr/CharBuffer.hpp
include/antlr/CharInputBuffer.hpp
include/antlr/CharScanner.hpp
include/antlr/CharStreamException.hpp
include/antlr/CharStreamIOException.hpp
include/antlr/CircularQueue.hpp
include/antlr/CommonAST.hpp
include/antlr/CommonASTWithHiddenTokens.hpp
include/antlr/CommonHiddenStreamToken.hpp
include/antlr/CommonToken.hpp
include/antlr/IOException.hpp
include/antlr/InputBuffer.hpp
include/antlr/LLkParser.hpp
include/antlr/LexerSharedInputState.hpp
include/antlr/MismatchedCharException.hpp
include/antlr/MismatchedTokenException.hpp
include/antlr/NoViableAltException.hpp
include/antlr/NoViableAltForCharException.hpp
include/antlr/Parser.hpp
include/antlr/ParserSharedInputState.hpp
include/antlr/RecognitionException.hpp
include/antlr/RefCount.hpp
include/antlr/SemanticException.hpp
include/antlr/String.hpp
include/antlr/Token.hpp
include/antlr/TokenBuffer.hpp
include/antlr/TokenRefCount.hpp
include/antlr/TokenStream.hpp
include/antlr/TokenStreamBasicFilter.hpp
include/antlr/TokenStreamException.hpp
include/antlr/TokenStreamHiddenTokenFilter.hpp
include/antlr/TokenStreamIOException.hpp
include/antlr/TokenStreamRecognitionException.hpp
include/antlr/TokenStreamRetryException.hpp
include/antlr/TokenStreamRewriteEngine.hpp
include/antlr/TokenStreamSelector.hpp
include/antlr/TokenWithIndex.hpp
include/antlr/TreeParser.hpp
include/antlr/TreeParserSharedInputState.hpp
include/antlr/config.hpp
lib/antlr.jar
lib/antlr.py
lib/${PYTHON_PYCACHE}/antlr${PYTHON_TAG}.pyc
lib/${PYTHON_PYCACHE}/antlr${PYTHON_TAG}.pyo
lib/libantlr.a
sbin/pyantlr.sh
share/antlr-${PKGVERSION}/__init__.py
share/antlr-${PKGVERSION}/${PYTHON_PYCACHE}/__init__${PYTHON_TAG}.pyc
share/antlr-${PKGVERSION}/${PYTHON_PYCACHE}/__init__${PYTHON_TAG}.pyo
share/antlr-${PKGVERSION}/antlr-jedit.xml
share/antlr-${PKGVERSION}/antlr-mode.el
share/antlr-${PKGVERSION}/antlr.jar
share/antlr-${PKGVERSION}/antlr.py
share/antlr-${PKGVERSION}/${PYTHON_PYCACHE}/antlr${PYTHON_TAG}.pyc
share/antlr-${PKGVERSION}/${PYTHON_PYCACHE}/antlr${PYTHON_TAG}.pyo
share/doc/antlr-${PKGVERSION}/INSTALL.txt
share/doc/antlr-${PKGVERSION}/LICENSE.txt
share/doc/antlr-${PKGVERSION}/README.txt
share/doc/antlr-${PKGVERSION}/closure.gif
share/doc/antlr-${PKGVERSION}/cpp-runtime.html
share/doc/antlr-${PKGVERSION}/csharp-runtime.html
share/doc/antlr-${PKGVERSION}/err.html
share/doc/antlr-${PKGVERSION}/glossary.html
share/doc/antlr-${PKGVERSION}/hidden.stream.gif
share/doc/antlr-${PKGVERSION}/index.html
share/doc/antlr-${PKGVERSION}/inheritance.html
share/doc/antlr-${PKGVERSION}/j-guru-blue.jpg
share/doc/antlr-${PKGVERSION}/jguru-logo.gif
share/doc/antlr-${PKGVERSION}/lexer.html
share/doc/antlr-${PKGVERSION}/lexer.to.parser.tokens.gif
share/doc/antlr-${PKGVERSION}/logo.gif
share/doc/antlr-${PKGVERSION}/metalang.html
share/doc/antlr-${PKGVERSION}/optional.gif
share/doc/antlr-${PKGVERSION}/options.html
share/doc/antlr-${PKGVERSION}/posclosure.gif
share/doc/antlr-${PKGVERSION}/python-runtime.html
share/doc/antlr-${PKGVERSION}/runtime.html
share/doc/antlr-${PKGVERSION}/sor.html
share/doc/antlr-${PKGVERSION}/stream.perspectives.gif
share/doc/antlr-${PKGVERSION}/stream.selector.gif
share/doc/antlr-${PKGVERSION}/stream.splitter.gif
share/doc/antlr-${PKGVERSION}/streams.html
share/doc/antlr-${PKGVERSION}/subrule.gif
share/doc/antlr-${PKGVERSION}/trees.html
share/doc/antlr-${PKGVERSION}/vocab.html
#
# Copyright (c) 2013 LAAS/CNRS
# All rights reserved.
#
# Permission to use, copy, modify, and distribute this software for any purpose
# with or without fee is hereby granted, provided that the above copyright
# notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
# AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
# OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
#
# Raphaël Lallement on Thu May 30 2013
#
DEPEND_DEPTH:= ${DEPEND_DEPTH}+
ANTLR_DEPEND_MK:= ${ANTLR_DEPEND_MK}+
ifeq (+,$(DEPEND_DEPTH))
DEPEND_PKG+= antlr2
endif
ifeq (+,$(ANTLR_DEPEND_MK)) # ---------------------------------------------
PREFER.antlr2?= system
DEPEND_USE+= antlr2
DEPEND_ABI.antlr2?= antlr2>=2<3
SYSTEM_SEARCH.antlr2= 'bin/{,run}antlr'\
'include/antlr/ANTLRException.hpp'\
'lib/libantlr.a'
export ANTLR_INCLUDE=$(word 2,${SYSTEM_FILES.antlr2})
export ANTLR_BIN=$(word 1,${SYSTEM_FILES.antlr2})
export ANTLR_LIB=$(word 3,${SYSTEM_FILES.antlr2})
SYSTEM_PKG.Fedora.antlr2= antlr-C++
SYSTEM_PKG.Ubuntu.antlr2= antlr libantlr-dev
SYSTEM_PKG.Debian.antlr2= antlr libantlr-dev
endif # ANTLR_DEPEND_MK --------------------------------------------------
DEPEND_DEPTH:= ${DEPEND_DEPTH:+=}
SHA1 (antlr-2.7.7.tar.gz) = 802655c343cc7806aaf1ec2177a0e663ff209de1
RMD160 (antlr-2.7.7.tar.gz) = 0b7951a28b748e912721fe0f6de4095d9f8da57d
Size (antlr-2.7.7.tar.gz) = 1816180 bytes
SHA1 (patch-aa) = 3ba26f556d817bacd0ed2678d0d95944ab410d8a
+++ lib/cpp/antlr/CharScanner.hpp
@@ -9,6 +9,8 @@
*/
#include <antlr/config.hpp>
+#include <stdio.h>
+#include <strings.h>
#include <map>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment