@mattwca/little-parser-lib 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/parser/parser.ts +0 -4
package/package.json
CHANGED
package/src/parser/parser.ts
CHANGED
|
@@ -130,16 +130,12 @@ export function label<T>(label: string, parser: ParseFn<T>): ParseFn<T> {
|
|
|
130
130
|
return (tokenStream: TokenStream) => {
|
|
131
131
|
const result = parser(tokenStream);
|
|
132
132
|
|
|
133
|
-
console.log('label parse result:', result);
|
|
134
|
-
|
|
135
133
|
if (isSuccessfulResult(result)) {
|
|
136
134
|
return result;
|
|
137
135
|
}
|
|
138
136
|
|
|
139
137
|
const errorMessage = `${label}: ${result.errorMessage}`;
|
|
140
138
|
|
|
141
|
-
console.log('labeled error message:', errorMessage);
|
|
142
|
-
|
|
143
139
|
return {
|
|
144
140
|
errorMessage,
|
|
145
141
|
position: result.position,
|