Skip to content

Commit 9367c25

Browse files
committed
---
yaml --- r: 2098 b: refs/heads/master c: aebdef0 h: refs/heads/master v: v3
1 parent f0b7687 commit 9367c25

File tree

3 files changed

+73
-74
lines changed

3 files changed

+73
-74
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 44aed626bf56b72af4934768e9fa31ad4439935a
2+
refs/heads/master: aebdef0cd6dff87322f51850f72c42ccb54fbd53

trunk/src/comp/front/extfmt.rs

Lines changed: 28 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -21,35 +21,34 @@ import std.option;
2121
import std.option.none;
2222
import std.option.some;
2323

24-
import std.ExtFmt;
25-
import std.ExtFmt.signedness;
26-
import std.ExtFmt.signed;
27-
import std.ExtFmt.unsigned;
28-
import std.ExtFmt.caseness;
29-
import std.ExtFmt.case_upper;
30-
import std.ExtFmt.case_lower;
31-
import std.ExtFmt.ty;
32-
import std.ExtFmt.ty_bool;
33-
import std.ExtFmt.ty_str;
34-
import std.ExtFmt.ty_char;
35-
import std.ExtFmt.ty_int;
36-
import std.ExtFmt.ty_bits;
37-
import std.ExtFmt.ty_hex;
38-
import std.ExtFmt.flag;
39-
import std.ExtFmt.flag_left_justify;
40-
import std.ExtFmt.flag_left_zero_pad;
41-
import std.ExtFmt.flag_left_space_pad;
42-
import std.ExtFmt.flag_plus_if_positive;
43-
import std.ExtFmt.flag_alternate;
44-
import std.ExtFmt.count;
45-
import std.ExtFmt.count_is;
46-
import std.ExtFmt.count_is_param;
47-
import std.ExtFmt.count_is_next_param;
48-
import std.ExtFmt.count_implied;
49-
import std.ExtFmt.conv;
50-
import std.ExtFmt.piece;
51-
import std.ExtFmt.piece_string;
52-
import std.ExtFmt.piece_conv;
24+
import std.ExtFmt.CT.signedness;
25+
import std.ExtFmt.CT.signed;
26+
import std.ExtFmt.CT.unsigned;
27+
import std.ExtFmt.CT.caseness;
28+
import std.ExtFmt.CT.case_upper;
29+
import std.ExtFmt.CT.case_lower;
30+
import std.ExtFmt.CT.ty;
31+
import std.ExtFmt.CT.ty_bool;
32+
import std.ExtFmt.CT.ty_str;
33+
import std.ExtFmt.CT.ty_char;
34+
import std.ExtFmt.CT.ty_int;
35+
import std.ExtFmt.CT.ty_bits;
36+
import std.ExtFmt.CT.ty_hex;
37+
import std.ExtFmt.CT.flag;
38+
import std.ExtFmt.CT.flag_left_justify;
39+
import std.ExtFmt.CT.flag_left_zero_pad;
40+
import std.ExtFmt.CT.flag_left_space_pad;
41+
import std.ExtFmt.CT.flag_plus_if_positive;
42+
import std.ExtFmt.CT.flag_alternate;
43+
import std.ExtFmt.CT.count;
44+
import std.ExtFmt.CT.count_is;
45+
import std.ExtFmt.CT.count_is_param;
46+
import std.ExtFmt.CT.count_is_next_param;
47+
import std.ExtFmt.CT.count_implied;
48+
import std.ExtFmt.CT.conv;
49+
import std.ExtFmt.CT.piece;
50+
import std.ExtFmt.CT.piece_string;
51+
import std.ExtFmt.CT.piece_conv;
5352
import std.ExtFmt.CT.parse_fmt_string;
5453

5554
export expand_syntax_ext;

trunk/src/lib/ExtFmt.rs

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,56 @@
11
import option.none;
22
import option.some;
33

4-
tag signedness {
5-
signed;
6-
unsigned;
7-
}
4+
// Functions used by the fmt extension at compile time
5+
mod CT {
6+
tag signedness {
7+
signed;
8+
unsigned;
9+
}
810

9-
tag caseness {
10-
case_upper;
11-
case_lower;
12-
}
11+
tag caseness {
12+
case_upper;
13+
case_lower;
14+
}
1315

14-
tag ty {
15-
ty_bool;
16-
ty_str;
17-
ty_char;
18-
ty_int(signedness);
19-
ty_bits;
20-
ty_hex(caseness);
21-
// FIXME: More types
22-
}
16+
tag ty {
17+
ty_bool;
18+
ty_str;
19+
ty_char;
20+
ty_int(signedness);
21+
ty_bits;
22+
ty_hex(caseness);
23+
// FIXME: More types
24+
}
2325

24-
tag flag {
25-
flag_left_justify;
26-
flag_left_zero_pad;
27-
flag_left_space_pad;
28-
flag_plus_if_positive;
29-
flag_alternate;
30-
}
26+
tag flag {
27+
flag_left_justify;
28+
flag_left_zero_pad;
29+
flag_left_space_pad;
30+
flag_plus_if_positive;
31+
flag_alternate;
32+
}
3133

32-
tag count {
33-
count_is(int);
34-
count_is_param(int);
35-
count_is_next_param;
36-
count_implied;
37-
}
34+
tag count {
35+
count_is(int);
36+
count_is_param(int);
37+
count_is_next_param;
38+
count_implied;
39+
}
3840

39-
// A formatted conversion from an expression to a string
40-
type conv = rec(option.t[int] param,
41-
vec[flag] flags,
42-
count width,
43-
count precision,
44-
ty ty);
45-
46-
// A fragment of the output sequence
47-
tag piece {
48-
piece_string(str);
49-
piece_conv(conv);
50-
}
41+
// A formatted conversion from an expression to a string
42+
type conv = rec(option.t[int] param,
43+
vec[flag] flags,
44+
count width,
45+
count precision,
46+
ty ty);
47+
48+
// A fragment of the output sequence
49+
tag piece {
50+
piece_string(str);
51+
piece_conv(conv);
52+
}
5153

52-
// Functions used by the fmt extension at compile time
53-
mod CT {
5454
fn parse_fmt_string(str s) -> vec[piece] {
5555
let vec[piece] pieces = vec();
5656
auto lim = _str.byte_len(s);

0 commit comments

Comments
 (0)