# Syntax : incomplete : premature end of input

**URL:** <https://discourse.julialang.org/t/syntax-incomplete-premature-end-of-input/63393>\
**Category:** New to Julia\
**Tags:** question, error, syntax\
**Created:** [June 22, 2021, 6:35pm UTC](https://discourse.julialang.org/t/syntax-incomplete-premature-end-of-input/63393 "2021-06-22T18:35:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![optimuslaprime](https://avatars.discourse-cdn.com/v4/letter/o/43a26b/32.png) [@optimuslaprime](https://discourse.julialang.org/u/optimuslaprime)\
**Post date:** [June 22, 2021, 6:35pm UTC](https://discourse.julialang.org/t/syntax-incomplete-premature-end-of-input/63393/1 "2021-06-22T18:35:04Z")

</div>

I am trying to create a new module within a module, but in a separate file. Regardless, both of the modules are giving me the same error of “syntax : incomplete : premature end of input”, but I have end as the closing statement of the module definition. Can anybody help me with this?

```julia
module MyUnits

@unit DistanceMetric "m" MyUnits 1u"m" true
@unit PressureMetric "decibars" MyUnits 1u"Pa/10000" true

end # module

```

---

<div class="post-metadata">

**Author:** ![rdeits](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rdeits/32/286_2.png) [@rdeits](https://discourse.julialang.org/u/rdeits)\
**Post date:** [June 22, 2021, 10:01pm UTC](https://discourse.julialang.org/t/syntax-incomplete-premature-end-of-input/63393/2 "2021-06-22T22:01:51Z")

</div>

Can you update your example to reproduce the same error you’re getting? I assume you must at least have something like `using Unitful`, since otherwise the `@unit` macro won’t exist.

---

<div class="post-metadata">

**Author:** ![optimuslaprime](https://avatars.discourse-cdn.com/v4/letter/o/43a26b/32.png) [@optimuslaprime](https://discourse.julialang.org/u/optimuslaprime)\
**Post date:** [June 22, 2021, 10:43pm UTC](https://discourse.julialang.org/t/syntax-incomplete-premature-end-of-input/63393/3 "2021-06-22T22:43:20Z")

</div>

That is all I have written. It is inside another module where I have used Unitful. But I get the same error anyway. The error just says syntax : incomplete : premature end of input.
