In this PR, imports refer to such constructs in EO:
+alias print org.eolang.txt.sprintf
or
+alias org.eolang.txt.sprintf
The functionality of the following modules has been updated to support imports without aliases:
1. Parser
Now can identify imporys without aliases. For example, "+alias org.eolang.txt.sprintf".
2. AST
The ast node EOAliasMeta has been changed to
sealed case class EOAliasMeta(
alias: Option[String],
src: NonEmptyList[String],
) extends EOMeta
3. Pretty-printer
Now supports pretty-printing of import without aliases like "+alias org.eolang.txt.sprintf".
4. Context (setting locators)
Meta-aliases are added to the initial context that the algorithm references to get locator information.
Some common imported keywords were removed from predef (EO keywords that are recognized when setting locators).
5. Tests
Testcases related to aliases in Parser were updated according to the made changes.
Added testcases for setting locators in the presence of EO-keywords and aliases.
In this PR, imports refer to such constructs in EO:
or
The functionality of the following modules has been updated to support imports without aliases:
1. Parser
2. AST
3. Pretty-printer
4. Context (setting locators)
5. Tests
This PR closes #15