Skip to content

Commit

Permalink
Merge pull request #112 from ibre5041/master
Browse files Browse the repository at this point in the history
C++ target fixes/changes/improvements
  • Loading branch information
sharwell committed Sep 8, 2013
2 parents c034866 + 1197512 commit f9b709d
Show file tree
Hide file tree
Showing 116 changed files with 21,526 additions and 141 deletions.
1 change: 1 addition & 0 deletions contributors.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,4 @@ YYYY/MM/DD, github id, Full name, email
2012/09/17, ksgokul, Gokulakannan Somasundaram, [email protected]
2012/11/22, sharwell, Sam Harwell, [email protected]
2013/02/19, murrayju, Justin Murray, [email protected]
2013/04/17, ibre5041, Ivan Brezina, [email protected]
60 changes: 60 additions & 0 deletions runtime/Cpp/include/antlr3.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
#ifndef _ANTLR3_HPP
#define _ANTLR3_HPP

// [The "BSD licence"]
// Copyright (c) 2005-2009 Gokulakannan Somasundaram, ElectronDB
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. The name of the author may not be used to endorse or promote products
// derived from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
// OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
// IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
// NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
// THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#include <string>
#include <sstream>

#include "antlr3defs.hpp"

#include "antlr3errors.hpp"
#include "antlr3memory.hpp"

#include "antlr3recognizersharedstate.hpp"
#include "antlr3baserecognizer.hpp"
#include "antlr3bitset.hpp"
#include "antlr3collections.hpp"
#include "antlr3commontoken.hpp"
#include "antlr3commontree.hpp"
#include "antlr3commontreeadaptor.hpp"
#include "antlr3cyclicdfa.hpp"
#include "antlr3debugeventlistener.hpp"
#include "antlr3exception.hpp"
#include "antlr3filestream.hpp"
#include "antlr3intstream.hpp"
#include "antlr3input.hpp"
#include "antlr3tokenstream.hpp"
#include "antlr3commontreenodestream.hpp"
#include "antlr3lexer.hpp"
#include "antlr3parser.hpp"
#include "antlr3rewritestreams.hpp"
#include "antlr3traits.hpp"
#include "antlr3treeparser.hpp"

#endif
9 changes: 9 additions & 0 deletions runtime/Cpp/include/antlr3.inl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
ANTLR_BEGIN_NAMESPACE()

//static
ANTLR_INLINE void GenericStream::displayRecognitionError( const StringType& str )
{
fprintf(stderr, str.c_str() );
}

ANTLR_END_NAMESPACE()
Loading

0 comments on commit f9b709d

Please sign in to comment.