Skip to content

Commit

Permalink
added typings
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir Trunin committed Nov 30, 2017
1 parent ab5fc25 commit 7f75bb9
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions src/ISpeg.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
export interface ISpeg {
parser: {
parser: Function,
state: {
lastExpectations: [{
position: number;
rule: string;
type: string;
}];
position: number;
text: string;
};
};
speg_parser: {
action: string;
children: [{
name: string;
parser: Function;
}]
end_position: number;
match: string;
start_position: number;
type: string;
};
state: {
position: number;
text: string;
succesfullRules?: [{
end_position: number;
match: string,
rule: string;
start_position: number;
text: string;
}];
failedRules: [{
rule: string
start_position: number
}];
failedTags: string[];
lastExpectations: [{
position: number;
rule: string;
type: string;
}];
rules: [{
name: string;
parser: Function
}];
};
visitor: {
actions: {};
};
}

0 comments on commit 7f75bb9

Please sign in to comment.