You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
399 B
JavaScript
23 lines
399 B
JavaScript
import { Newline } from "../../peg-newline"
|
|
import { CommaDelimitedInteger as GroupedInteger } from "../../peg-grouped-number"
|
|
|
|
{
|
|
const syncpipe = require("syncpipe");
|
|
const {B} = require("../../unit-bytes-iec");
|
|
}
|
|
|
|
RestOfLine
|
|
= content:$[^\n]+ Newline {
|
|
return content;
|
|
}
|
|
|
|
BytesValue
|
|
= value:GroupedInteger {
|
|
return B(value);
|
|
}
|
|
|
|
IdentifierValue
|
|
= value:$[a-zA-Z_-]+ {
|
|
return value;
|
|
}
|