nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge: Nitsmell : Adding new code smells and print console updated
[nit.git]
/
lib
/
parser_base.nit
diff --git
a/lib/parser_base.nit
b/lib/parser_base.nit
index
f97fbf0
..
b623137
100644
(file)
--- a/
lib/parser_base.nit
+++ b/
lib/parser_base.nit
@@
-11,6
+11,8
@@
# Simple base for hand-made parsers of all kinds
module parser_base
# Simple base for hand-made parsers of all kinds
module parser_base
+import serialization
+
# Basic facilities for common parser operations on String sources
class StringProcessor
# Source document to parse
# Basic facilities for common parser operations on String sources
class StringProcessor
# Source document to parse
@@
-114,6
+116,8
@@
end
# Information about the location of an entity in a source document
class Location
# Information about the location of an entity in a source document
class Location
+ serialize
+
# Line in which the element is described
var line: Int
# Offset in the line at which the element is positioned
# Line in which the element is described
var line: Int
# Offset in the line at which the element is positioned