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 /
racc /
examples /
[ HOME SHELL ]
Name
Size
Permission
Action
array.y
971
B
-rw-r--r--
array2.y
928
B
-rw-r--r--
calc-ja.y
1.17
KB
-rw-r--r--
calc.y
1017
B
-rw-r--r--
conflict.y
224
B
-rw-r--r--
hash.y
1.04
KB
-rw-r--r--
lalr.y
148
B
-rw-r--r--
lists.y
1.01
KB
-rw-r--r--
syntax.y
674
B
-rw-r--r--
yyerr.y
483
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : calc-ja.y
# $Id$ # # A simple calculator, version 2. # This file contains Japanese characters (encoding=EUC-JP). class Calculator2 prechigh nonassoc UMINUS left '*' '/' left '+' '-' preclow options no_result_var rule target : exp | /* none */ { 0 } exp : exp '+' exp { val[0] + val[2] } | exp '-' exp { val[0] - val[2] } | exp '*' exp { val[0] * val[2] } | exp '/' exp { val[0] / val[2] } | '(' exp ')' { val[1] } | '-' NUMBER =UMINUS { -(val[1]) } | NUMBER end ---- header # $Id$ ---- inner def evaluate(str) @tokens = [] until str.empty? case str when /\A\s+/ ; when /\A\d+/ @tokens.push [:NUMBER, $&.to_i] when /\A.|\n/ s = $& @tokens.push [s, s] end str = $' end @tokens.push [false, '$'] do_parse end def next_token @tokens.shift end ---- footer puts 'Ķ������� 2 �浡' puts 'Q �ǽ�λ���ޤ�' calc = Calculator2.new while true print '>>> '; $stdout.flush str = $stdin.gets.strip break if /q/i =~ str begin p calc.evaluate(str) rescue ParseError puts 'parse error' end end
Close