summaryrefslogtreecommitdiffstats
path: root/report
diff options
context:
space:
mode:
authorAidenRushbrooke <72034940+AidenRushbrooke@users.noreply.github.com>2021-11-22 16:30:45 +0000
committerAidenRushbrooke <72034940+AidenRushbrooke@users.noreply.github.com>2021-11-22 16:30:45 +0000
commit8e368b67de60442c483bd9def7036e52562ccc81 (patch)
tree947d775285ad2df464177df8ec9e1d63e99cae0d /report
parentab5584190b83a8cda9cbb3469ce841dbaa3aa38a (diff)
downloadesotericFORTRAN-8e368b67de60442c483bd9def7036e52562ccc81.tar.gz
esotericFORTRAN-8e368b67de60442c483bd9def7036e52562ccc81.zip
Improved error handing and added logical statements
Diffstat (limited to 'report')
-rw-r--r--report/esoteric_project_report.pdfbin297672 -> 198596 bytes
-rw-r--r--report/esoteric_project_report.tex22
2 files changed, 17 insertions, 5 deletions
diff --git a/report/esoteric_project_report.pdf b/report/esoteric_project_report.pdf
index bc2872e..445fde8 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 d4b2b78..3da6800 100644
--- a/report/esoteric_project_report.tex
+++ b/report/esoteric_project_report.tex
@@ -173,16 +173,28 @@ asdf
& $<$expr-Statement$>$ $|$\\
& $<$print-Statement$>$ $|$ \\
& $<$if-Statement$>$ \\
+ & $<$do-Statement$>$ \\
+ & $<$do-while-Statement$>$ \\
+ \hline
+ $<$block$>$::=& $<$statement$>$* "end"\\
\hline
$<$declaration$>$ ::= & "character (len = "$<$number$>$")::"$<$identifier$>$ $|$ \\
& "int::"$<$identifier$>$ \\
& "real::"$<$identifier$>$ \\
\hline
- $<$print-Statement$>$ ::= & "print *" (","$<$expression$>$)* "endprint" \\
+ $<$print-Statement$>$ ::= & "print *" (","$<$expression$>$)* \\
+ \hline
+ $<$if-Statement$>$ ::= & "if ("$<$expression$>$") then" $<$block$>$ \\
+ & ("else" $<$block$>$)?\\
+ & if"\\
+ \hline
+ $<$do-Statement$>$ ::= & "do" $<$identifier$>$ "=" $<$number$>$","$<$number$>$(","$<$number$>$)?\\
+ &$<$block$>$ \\
+ & "do"\\
\hline
- $<$if-Statement$>$ ::= & "if ("$<$expression$>$") then" $<$statement$>$* \\
- & ("else" $<$statement$>$*)?\\
- & "endif"\\
+ $<$do-while-Statement$>$ ::= & "do while ("$<$expression$>$")"\\
+ & $<$block$>$ \\
+ & "do"\\
\hline
$<$expr-statement$>$ ::= & $<$expression$>$\\
\hline
@@ -194,7 +206,7 @@ asdf
$<$equality$>$ ::= & $<$comparison$>$"=="$<$comparison$>$$|$\\
& $<$comparison$>$$|$\\
\hline
- $<$comparison$>$ ::= & $<$term$>$("$>$"$|$"$<$")$<$term$>$$|$\\
+ $<$comparison$>$ ::= & $<$term$>$("$>$"$|$"$<$"$|$"$>=$"$|$"$>=$")$<$term$>$$|$\\
& $<$term$>$$|$\\
\hline
$<$term$>$ ::= & $<$factor$>$("+"$|$"-")$<$factor$>$$|$\\