summaryrefslogtreecommitdiffstats
path: root/report
diff options
context:
space:
mode:
authorAlfie Eagleton <67986414+TheAlfanator@users.noreply.github.com>2021-10-17 17:53:14 +0100
committerAlfie Eagleton <67986414+TheAlfanator@users.noreply.github.com>2021-10-17 17:53:14 +0100
commitb49bb78db545f0aa6569d8e78e79d4740ca77c4a (patch)
treed72f037192a2afc567ee99cb405b44ffaba3c369 /report
parent9ce3bc07fc567594c0ceb22386799ec59e9dfdd7 (diff)
downloadesotericFORTRAN-b49bb78db545f0aa6569d8e78e79d4740ca77c4a.tar.gz
esotericFORTRAN-b49bb78db545f0aa6569d8e78e79d4740ca77c4a.zip
Chapter 3 - FORTRAN
Created a grammar table regarding FORTRAN and Java.
Diffstat (limited to 'report')
-rw-r--r--report/esoteric_project_report.pdfbin193134 -> 197284 bytes
-rw-r--r--report/esoteric_project_report.tex66
2 files changed, 66 insertions, 0 deletions
diff --git a/report/esoteric_project_report.pdf b/report/esoteric_project_report.pdf
index 67ff856..58a9978 100644
--- a/report/esoteric_project_report.pdf
+++ b/report/esoteric_project_report.pdf
Binary files differ
diff --git a/report/esoteric_project_report.tex b/report/esoteric_project_report.tex
index 8306b94..055f752 100644
--- a/report/esoteric_project_report.tex
+++ b/report/esoteric_project_report.tex
@@ -79,6 +79,72 @@ Esolangs are programming languages designed to be jokes or proof of concept lang
\section{Example - Shakespearian Programming Language}
The Shakespeare Programming Language is esoteric code parodied on extracts from Romeo and Juliet. Here, code is written so it reads like how a script would, such as \texttt{[Enter Juliet]} where \texttt{Juliet} may be a variable name. Other examples include using \texttt{Acts} or \texttt{Scenes} as GOTO statements, where the interpreter can jump to a certain point in the code and read from there. Otherwise, these are ignored similar to the title or character descriptions. Other examples include LOLCODE, Hodor or White Space. This serves the purpose of writing code in a different manner to usual, sometimes for humour. The aim is to replace typical language features so that it can still be read by a compiler or interpreter but also look and read very differently by the user.
+\chapter{Grammar - FORTRAN}
+
+\section {Why we chose FORTRAN}
+
+asdf
+
+\begin{table}[h!]
+ \begin{center}
+
+ \begin{tabular}{|l|r|}
+ \hline
+ \textbf{Token} & \textbf{Replaces}\\
+ \hline
+ ! & \slash\slash \\
+ \hline
+ PROGRAM x & public class x \{ \\
+ \hline
+ END PROGRAM & \} \\
+ \hline
+ INTEGER & int \\
+ \hline
+ LOGICAL & boolean \\
+ \hline
+ .FALSE. & false \\
+ \hline
+ .TRUE. & true \\
+ \hline
+ CHARACTER(LEN=x) & String \\
+ \hline
+ :: & = \\
+ \hline
+ IF (x) THEN & if(x) \{ \\
+ \hline
+ ELSE & else \\
+ \hline
+ END IF & \} \\
+ \hline
+ SELECT CASE (x) & switch(x) \{ \\
+ \hline
+ CASE (x) & case x: \\
+ \hline
+ CASE DEFAULT & default: \\
+ \hline
+ END SELECT & \} \\
+ \hline
+ x & x; \\
+ \hline
+ DO x = y, z & for(x = y, x < z; x++) \{ \\
+ \hline
+ END DO & \} \\
+ \hline
+ PRINT *, x & System.out.println(x); \\
+ \hline
+ SUBROUTINE x & static void x() \{ \\
+ \hline
+ END SUBROUTINE & \} \\
+ \hline
+ CALL x & x(); \\
+ \hline
+
+ \end{tabular}
+ \label{tab:table1}
+ \caption{Grammar table for Fortran}
+ \end{center}
+\end{table}
+
\chapter{Methodology}\label{MethLab}
Describe here various methods that will be used in your project. Use different sections for distinctly different subjects and use subsections for specific details on the same subject. Only use subsubsections or paragraphs (which are not numbered) if you believe this is really necessary. Since implementation will happen in sprints, this section may need several updates with parts being added and deleted across the project.