# Missing \begin{document} in .cls file [closed]

I am using the template deedy resume. Here is my repo with my resume. I am getting an error in compilation. I have checked for BOM characters. I have reinstalled texlive-full. I am at a lost for this.

*I would post more links but do not have enough reputation.

EDIT 1: Repo edited to MWE_document.tex and MWE_deedy-resume-openfont.cls to reduce code, addressing a comment.

My log file

• Welcome to TeX.SX! Most times this is caused by some typesetting character or a typesetting command before \begin[document}. – user31729 Dec 25 '15 at 21:36
• l.29 ...lor=primary, Path = fonts/lato/]{Lato-Lig} is the first error. Try to reduce your file to the minimum one with the error (called a MWE, Minimal Working Example) and post it in your question. See meta.tex.stackexchange.com/questions/228/… – Rmano Dec 25 '15 at 21:37
• Unsure if related but the log file reports that the expl3 - macro \str_case:nnn is unknown. As far as I know there's indeed no such macro – user31729 Dec 25 '15 at 21:45
• I've just downloaded the repo and compiled both document.tex and temp-document.tex -- without errors. Have you really updated your TeXLive distribution? – user31729 Dec 25 '15 at 21:49
• I had no problem compiling with xelatex. The lato font is installed on my Windows 7 system (in C:\Windows\Fonts). – Bernard Dec 25 '15 at 21:54

It was a bug in expl3. Update your TeX distribution or read the answer to Latest MiKTex update breaks with fontspec