1 ///////////////////////////////////////////////////////////////////////////////
2 // Copyright (c) 2000-2015 Ericsson Telecom AB
3 // All rights reserved. This program and the accompanying materials
4 // are made available under the terms of the Eclipse Public License v1.0
5 // which accompanies this distribution, and is available at
6 // http://www.eclipse.org/legal/epl-v10.html
7 ///////////////////////////////////////////////////////////////////////////////
12 extern void asn1la_newtokenbuf(Asn::TokenBuf
*tb
);
13 extern int asn1_yyparse();
14 #define yyparse asn1_yyparse
18 using namespace Common
;
22 Block::Block(TokenBuf
*p_tokenbuf
)
23 : Node(), Location(), tokenbuf(p_tokenbuf
)
25 if (!p_tokenbuf
) FATAL_ERROR("NULL parameter: Asn::Block::Block()");
28 Block::Block(const Block
& p
)
29 : Node(p
), Location(p
)
31 tokenbuf
=p
.tokenbuf
->clone();
39 Node
* Block::parse(int kw_token
)
41 tokenbuf
->push_front_kw_token(kw_token
);
42 asn1la_newtokenbuf(tokenbuf
);
43 if(yyparse()) parsed_node
=0;
47 void Block::dump(unsigned level
) const
49 DEBUG(level
, "Block");
50 tokenbuf
->dump(level
+ 1);
This page took 0.04003 seconds and 5 git commands to generate.