Skip to content

Commit 3285555

Browse files
committed
Rename no data was parsed function
1 parent 6d2e27c commit 3285555

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

parser/main.coffee.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The appropriate one is chosen by the `single_pass` switching function.
2323

2424
## Last record
2525

26-
last_record_is_empty = propEq('bytes', 0)
26+
no_data_was_parsed = propEq('bytes', 0)
2727
2828

2929
## Pick parser
@@ -38,8 +38,8 @@ NOTE: A `type` property is added in the [start_new_group](./start_new_group.coff
3838

3939
pick_parser = cond([
4040
[passed_group_stop, start_new_group]
41-
[passed_record_stop, pipe(start_new_record, R.unless(last_record_is_empty, add_type('record_header')))]
42-
[T, pipe(parse_field, R.unless(last_record_is_empty, add_type('field')))]
41+
[passed_record_stop, pipe(start_new_record, R.unless(no_data_was_parsed, add_type('record_header')))]
42+
[T, pipe(parse_field, R.unless(no_data_was_parsed, add_type('field')))]
4343
])
4444
4545

@@ -48,7 +48,7 @@ NOTE: A `type` property is added in the [start_new_group](./start_new_group.coff
4848
main_loop = unfold(
4949
pipe(
5050
pick_parser,
51-
ifElse(last_record_is_empty, F, juxt([identity, identity]))
51+
ifElse(no_data_was_parsed, F, juxt([identity, identity]))
5252
)
5353
)
5454

0 commit comments

Comments
 (0)