\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{expex}
% Uncomment the following line if you do not want extra space before the free translation and the glosses, or other customisations to the examples.
\lingset{aboveglftskip=-.2ex,interpartskip=\baselineskip,everyglb=\footnotesize}
\title{Some \texttt{expex} Linguistic Examples}
\author{LianTze Lim}
\begin{document}
\maketitle
\ex<simplest>
This is an example.
\xe
%% Example with parts
\pex[*=?*]<judgements> %% Longest judgement mark
% first part
\a There is a pair of pants on the floor.
% second part (with judgement}
\a \ljudge{?*} There are a pair of pants on the floor.
% third part (with judgement)
\a \ljudge{*} There is the pair of pants on the floor.
\xe
%% Example with parts and glosses; some references
\pex<withparts> %% "main" example needs a tag
\a<first> %% First part with a tag
\begingl %% Start glosses
\gla \textbf{syá} lu-keníkéni //
\glb \textsc{di} 11firely/11star//
\glft `small/tiny firefly/star'//
\endgl
\a<second> \ljudge{*} %% Second part
\begingl %% start glosses
\gla \textbf{syá} luto/lwito//
\glb \textsc{di} 11ashes//
\endgl
\xe
Each example can have a tag in angular brackets \texttt{<>}.
Example \getref{simplest} is the simplest example you can create with \texttt{expex}. Then example \getref{judgements} shows how you can add judgement marks.
Example parts can also be tagged and referenced; but remember that the `main' example needs to have a tag, too. You may want to use \verb|\getfullref| instead of \verb|\getref|. See the difference: \getfullref{withparts.first} vs \getref{withparts.first}.
\end{document}