Add positions to ReaderExp

This commit is contained in:
2020-11-24 17:16:18 -07:00
parent 8019c8893d
commit 000bd555db
6 changed files with 86 additions and 52 deletions

View File

@@ -6,6 +6,8 @@ import haxe.ds.Option;
using StringTools;
using Lambda;
typedef Position = String;
class Stream {
var content:String;
var file:String;
@@ -34,7 +36,7 @@ class Stream {
return content.length == 0;
}
public function position() {
public function position():Position {
return '$file:$line:$column';
}