Skip to content

Commit

Permalink
[Doc] small tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
nydragon committed Mar 10, 2023
1 parent 517c70c commit 851fc67
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 49 deletions.
1 change: 0 additions & 1 deletion GLaDOS2023.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ test-suite unit-tests
CompilationLib.Parser.CptTests,
CompilationLib.Parser.AstTests,
CompilationLib.Parser.InfixTests,
CompilationLib.Compilation.CompilationTests,
ExecLib.Exec.Infer,
ExecLib.Exec.Instructions,
ExecLib.Exec.Utils,
Expand Down
Binary file removed doc/bonuses.pdf
Binary file not shown.
80 changes: 56 additions & 24 deletions doc/bonuses_documentation.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@

# Bonuses

- [Bonuses](#bonuses)
- [REPL](#repl)
- [Syntax Documentation for compiled code](#syntax-documentation-for-compiled-code)
- [Arrays](#arrays)
- [Array Nesting](#array-nesting)
- [Array Operation](#array-operation)
- [Head](#head)
- [Last](#last)
- [Tail](#tail)
- [Init](#init)
- [Join](#join)
- [PushFront](#pushfront)
- [Pushback](#pushback)
- [Strings and character escaping](#strings-and-character-escaping)
- [Input/Output](#inputoutput)
- [Reading from Stdin](#reading-from-stdin)
- [Writing to Stdout](#writing-to-stdout)
- [Reading files](#reading-files)
- [Floating point numbers](#floating-point-numbers)
- [Rigor](#rigor)

- [REPL](#repl)
- [Syntax Documentation for compiled code](#syntax-documentation-for-compiled-code)
- [Arrays](#arrays)
- [Array Nesting](#array-nesting)
- [Array Operation](#array-operation)
- [Head](#head)
- [Last](#last)
- [Tail](#tail)
- [Init](#init)
- [Join](#join)
- [PushFront](#pushfront)
- [Pushback](#pushback)
- [Strings and character escaping](#strings-and-character-escaping)
- [Input/Output](#inputoutput)
- [Reading from Stdin](#reading-from-stdin)
- [Writing to Stdout](#writing-to-stdout)
- [Floating point numbers](#floating-point-numbers)
- [Rigor](#rigor)


This Document might be nicer to read on [GitHub](https://github.com/nLatt/GLaDOS-2023/blob/main/doc/bonuses_documentation.md)

## REPL

All of the following bonus's may be ran in our fully featured interactive prompt.
All of the following bonuses may be run in our fully featured interactive prompt.

You may build it by running...

Expand Down Expand Up @@ -146,10 +146,37 @@ It is possible to use strings in our code, they are written using the following

## Input/Output

It is possible to interact with the local filesystem and ask for user input to built interactive programs.

### Reading from Stdin

```lisp
> (+ (readInt) 2)
in: 3
out: 5
```

```lisp
> (+ (readInt) (readInt))
in: 5
in: 6
out: 11
```

### Writing to Stdout
### Reading files

There are 2 functions for writing to stdout, `print` and `println`.


```lisp
> (print "Hello World!")
Hello World! -- no newline
```

```lisp
> (println "Hello World!")
Hello World! -- newline
```

## Floating point numbers

Expand Down Expand Up @@ -189,5 +216,10 @@ Here are a couple of these points :
- Concise and meaningful commits - **Over 500 commits**
- Commit linting using [commitizen](https://github.com/commitizen/cz-cli)
- Lots of code commenting
- Unit Testing - **Over 100** tests
- Integration Testing - **Over 20** end to end integration tests

We also added **an other ABNF style** [document](compiled-syntax-description.md) along with some documentation for our custom assembly like language that we compile into.


We also added **an other BNF style** [document](compiled-syntax-description.md) along with some documentation for our custom assembly like language that we compile into.
[Return to the main page](../README.md)
Binary file modified doc/bonuses_documentation.pdf
Binary file not shown.
4 changes: 1 addition & 3 deletions tests/unit-tests/CompilationLib.hs
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,12 @@ import CompilationLib.Parser.ArgsTests ( argsSuite )
import CompilationLib.Parser.AstTests ( astSuite )
import CompilationLib.Parser.TokenTests ( tokenSuite )
import CompilationLib.Parser.InfixTests ( infixSuite )
import CompilationLib.Compilation.CompilationTests (testCompileConditional)

compilationLibSuite :: TestTree
compilationLibSuite = testGroup "Parsing Testsuite" [
argsSuite,
tokenSuite,
cptSuite,
astSuite,
infixSuite,
testCompileConditional
infixSuite
]
21 changes: 0 additions & 21 deletions tests/unit-tests/CompilationLib/Compilation/CompilationTests.hs

This file was deleted.

0 comments on commit 851fc67

Please sign in to comment.