This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
----class/struct | |
dot | |
1ドットを表す構造体 | |
b1u_t b; //blue | |
b1u_t g; //green | |
b1u_t r; //red | |
b1u_t a; //alpha | |
logic_error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <algorithm> | |
#include <vector> | |
#include <map> | |
template< | |
class Key, | |
class Mapped, | |
class Compare = std::less<Key>, | |
class Alloc = std::allocator<std::pair<Key, Mapped>> | |
> class vector_map{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Net.Http; | |
using System.IO; | |
using System.Windows.Forms; | |
namespace GeocitiesExplore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<lexer> lexer{ | |
mul = "\*"; | |
div = "\/"; | |
add = "\+"; | |
sub = "\-"; | |
left_paren = "\("; | |
right_paren = "\)"; | |
[make_id] id = "[0-9]+"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef LEXER_HPP_ | |
#define LEXER_HPP_ | |
#include <vector> | |
#include <utility> | |
#include <exception> | |
namespace lexer{ | |
enum class token_kind{ | |
IF, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%token charactor<node*> vertical_bar dot asterisk plus question l_bracket r_bracket l_paren r_paren concat hyphen; | |
%namespace regex_parser; | |
S<node*> | |
: [make_identity] LevelC(0) | |
; | |
LevelC<node*> | |
: [make_or] LevelB(0) vertical_bar LevelC(1) | |
| [make_concat] LevelB(0) LevelC(1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define _USE_MATH_DEFINES | |
#include <memory> | |
#include <complex> | |
#include <iostream> | |
#include <cmath> | |
#include "bmp.hpp" | |
using complex_t = std::complex<float>; | |
int bit_rev(int a){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "tasklist.hpp" | |
#include <iostream> | |
#include <string> | |
template<class T> | |
T *create_task(); | |
tasklist::storage *delete_task(tasklist::arstorage); | |
struct a0 : public tasklist::task{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
軽量級タスクシステム | |
gccだと動かぬ | |
使い方は一番最後にあるよ | |
*/ | |
#ifndef __TTY_TASKSYSTEM__ | |
#define __TTY_TASKSYSTEM__ | |
#include <boost/preprocessor/repetition/repeat.hpp> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= Tutorial 1 | |
- さて、魔導書の取り扱いは初めてでしたね。 | |
- まずは魔導書とスペルの関係について説明しましょう。 | |
- 魔導書とは、魔力が充填されたスペル・ルールの書いてある書物です。 | |
- プレイヤーは魔導書を開き、そこに書かれているルールに従ってスペルを唱えることで | |
- 魔法を発動させ、様々な効果を得ることができます。 | |
- スペルを唱えると、そのスペルに応じた分だけプレイヤーの魔力と魔導書の魔力が | |
- 消費されます。 |
NewerOlder