Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99468868
parser_real.cc
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Jan 24, 20:17
Size
1 KB
Mime Type
text/x-c
Expires
Sun, Jan 26, 20:17 (2 d)
Engine
blob
Format
Raw Data
Handle
23778491
Attached To
rCADDMESH CADD_mesher
parser_real.cc
View Options
/**
* @file parser_real.cc
*
* @author Nicolas Richart <nicolas.richart@epfl.ch>
*
* @date creation: Thu Feb 21 2013
* @date last modification: Wed Nov 11 2015
*
* @brief implementation of the parser
*
* @section LICENSE
*
* Copyright (©) 2014, 2015 EPFL (Ecole Polytechnique Fédérale de Lausanne)
* Laboratory (LSMS - Laboratoire de Simulation en Mécanique des Solides)
*
* Akantu is free software: you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at your option) any
* later version.
*
* Akantu is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
* A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Akantu. If not, see <http://www.gnu.org/licenses/>.
*
*/
/* -------------------------------------------------------------------------- */
#include "parser.hh"
#include "parser_grammar_tmpl.hh"
/* -------------------------------------------------------------------------- */
#include "algebraic_parser.hh"
/* -------------------------------------------------------------------------- */
__BEGIN_AKANTU__
/* -------------------------------------------------------------------------- */
Real
Parser
::
parseReal
(
const
std
::
string
&
value
,
const
ParserSection
&
section
)
{
using
boost
::
spirit
::
ascii
::
space_type
;
parser
::
AlgebraicGrammar
<
std
::
string
::
const_iterator
,
space_type
>
grammar
(
section
);
grammar
.
name
(
"algebraic_grammar"
);
return
Parser
::
parseType
<
Real
>
(
value
,
grammar
);
}
__END_AKANTU__
Event Timeline
Log In to Comment