Skip to content

Commit

Permalink
grammar: Add initial version of the formal grammar for the LLVM IR As…
Browse files Browse the repository at this point in the history
…sembly Language.
  • Loading branch information
mewmew committed Sep 30, 2014
1 parent 2009d6b commit a60abf7
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 0 deletions.
7 changes: 7 additions & 0 deletions asm/grammar/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
all: grammar

grammar:
texi2pdf -q -c $@.tex

clean:
rm -f *.aux *.log *.out *.toc
39 changes: 39 additions & 0 deletions asm/grammar/grammar.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
\documentclass[12pt, a4paper]{article}

% Preamble

\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage[margin=1in]{geometry}
\usepackage[parfill]{parskip}
\usepackage[hidelinks]{hyperref}
\bibliographystyle{ieeetr}

\title{Formal Grammar of the LLVM IR Assembly Language}
\author{Robin Eklind}
\date{2014-09-30}

% Document

\begin{document}

\maketitle

\pagebreak

\tableofcontents

\pagebreak

% === [ Introduction ] =========================================================

\section{Introduction}

The main purpose of this document is to specify the formal grammar of the LLVM
IR Assembly Language \cite{lang_ref}.

\pagebreak

\bibliography{references}

\end{document}
4 changes: 4 additions & 0 deletions asm/grammar/references.bib
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@misc{lang_ref,
title={{LLVM} Language Reference Manual},
note={[Online] Available: \url{http://llvm.org/docs/LangRef.html}. [Accessed: 30 Sep, 2014]},
}

0 comments on commit a60abf7

Please sign in to comment.