petersalex27 / yew

Yew: Strongly and Statically and Dependently Typed, Functional Language
MIT License
1 stars 0 forks source link

imports/uses parsing #15

Open petersalex27 opened 9 months ago

petersalex27 commented 9 months ago

Edit:

imports work in a similar way, syntax looks different though

imports

import Reflection
import Functions as Func
import
  FastMath as FM
  Prelude

Previous:

import examples:

import sml where sml = someMathLibrary in ... import someMathLibrary in ...

import {
  sml where sml = someMathLibrary
  math
} in ...

use examples:

use someMathLibrary in ...

use {
  someMathLibrary
  math
} in ...