Skip to content

Commit

Permalink
minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Aug 12, 2023
1 parent 27b9335 commit df4f8e8
Show file tree
Hide file tree
Showing 10 changed files with 35 additions and 28 deletions.
2 changes: 1 addition & 1 deletion src/api/environment/command-line-arguments.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ int main(int argc, char *argv[], char *envp[]) {
}
```

::: tip
::: info
JuleC generates IR wich is calls the setup function in entry point by default.
:::
2 changes: 1 addition & 1 deletion src/api/environment/environment-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ int main(int argc, char *argv[], char *envp[]) {
}
```

::: tip
::: info
JuleC generates IR wich is calls the setup function in entry point by default.
:::
2 changes: 1 addition & 1 deletion src/common-concepts/enums.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ fn main() {
}
```
As seen in the example above, there is an enumeration definition. If you do not assign a value to the enumeration elements, the index value is automatically assigned. In this case, the element `both` in the example above has the value `2`.
::: tip
::: info
- You can use an element before them as a value in enumerations.
- Enumerations has `int` data type by default.
:::
Expand Down
2 changes: 1 addition & 1 deletion src/common-concepts/maps.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Maps
Maps is a hashmap. Maps a unique key value to a value.
::: tip
::: info
Map values ​​are not kept in the inserted order. Hence iterations etc. It's very likely that you don't get a sequential output in actions.
:::

Expand Down
4 changes: 2 additions & 2 deletions src/common-concepts/variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ For example:
static my_int: int = 20
```

::: tip
::: info
C++ linked variables can't be static.
:::

Expand Down Expand Up @@ -110,7 +110,7 @@ fn main() {
}
```

::: tip
::: info
C++ linked globals can be declare via `let` keyword.
:::

Expand Down
7 changes: 7 additions & 0 deletions src/compiler/backend/cpp-backend-compilers/clang.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

Clang is a C/C++ compiler using LLVM. Jule gives priority support to Clang and is recommended to be used with Clang whenever possible. Jule and related projects use Clang as the backend compiler and are primarily tested for Clang.

## Why Do We Recommend Clang?

- Clang has descriptive and informative compiler messages.
- Clang has fast compilation performance.
- Clang has low memory footprint.
- Clang provides a reliable experience for Jule.

## Clang on Windows

The [MSVC](/compiler/backend/cpp-backend-compilers/#msvc-compatibility) section mentions Jule's support for MSVC. You may want to use Clang on Windows. There is a Clang build we recommend so you can do this. It uses the MinGW toolchain. Compatible with compiling Jule IRs by default.
Expand Down
4 changes: 2 additions & 2 deletions src/compiler/directives.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Directives
Compiler directives (or pragma), they are statements that describe how the compiler should handle the source code. Directives are safe to use. Each one is essentially a comment. Any part or directive that is incorrect is considered invalid. You won't get a headache with any compiler errors.

::: tip
::: info
Incorrect directives will cause compiler errors if necessary.
:::

Expand Down Expand Up @@ -67,7 +67,7 @@ Directive pass is a top directive.
Passes compiler flags to generated compile command for compiling source code.
Passes are must be start with dash.

::: tip
::: info
There are no issue if you are using same passes.
The compiler eliminates duplicate passes.
:::
Expand Down
2 changes: 1 addition & 1 deletion src/cpp/interoperability/types.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ cpp type char: byte
```

::: tip
If the types you use do not belong to Jule, if you are linking from C/++, make sure to use the types you link, even if you have a compatible Jule type. This is important for your type safety.
If the types you use do not belong to Jule, if you are linking from C/C++, make sure to use the types you link, even if you have a compatible Jule type. This is important for your type safety.
:::

## Linking Type Aliases
Expand Down
4 changes: 2 additions & 2 deletions src/getting-started/install-from-source/manual-compilation.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ julec -o ./bin/julec ./src/julec
There are a few recommendations for getting the best JuleC build for manual compilation and Jule developers.
Considering these recommendations can help the JuleC build you use during development to offer the best performance.

### C++ Version
### C++ Standard

Instead of the default version, it would be better for you to use ``c++17``.
Instead of the default standard, it would be better for you to use ``c++17``.
JuleC is dependent on several headers from ``c++17``.
Even if you can compile with ``c++14``, compiling with ``c++17`` can provide a smoother experience for you.

Expand Down
34 changes: 17 additions & 17 deletions src/standard-library/std-jule-sema.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ struct Enum {
}
```
Enum.
::: tip
::: info
**Implemented Traits**\
- Kind
:::
Expand Down Expand Up @@ -116,7 +116,7 @@ struct Data {
}
```
Value data.
::: tip
::: info
**Implemented Traits**\
- Kind
:::
Expand Down Expand Up @@ -577,7 +577,7 @@ struct ParamIns {
}
```
Parameter instance.
::: tip
::: info
**Implemented Traits**
- Kind
:::
Expand All @@ -600,7 +600,7 @@ struct FnIns {
}
```
Function instance.
::: tip
::: info
**Implemented Traits**
- Kind
:::
Expand Down Expand Up @@ -675,7 +675,7 @@ struct ImportInfo {
```
Import information.\
Represents imported package by use declaration.
::: tip
::: info
**Implemented Traits**
- Lookup
:::
Expand All @@ -688,7 +688,7 @@ struct Package {
}
```
Package.
::: tip
::: info
**Implemented Traits**
- Lookup
:::
Expand Down Expand Up @@ -995,7 +995,7 @@ struct StructIns {
}
```
Structure instance.
::: tip
::: info
**Implemented Traits**
- Kind
:::
Expand Down Expand Up @@ -1037,7 +1037,7 @@ struct SymbolTable {
}
```
Structure instance.
::: tip
::: info
**Implemented Traits**
- Lookup
:::
Expand All @@ -1055,7 +1055,7 @@ struct Trait {
}
```
Trait.
::: tip
::: info
**Implemented Traits**
- Kind
:::
Expand Down Expand Up @@ -1085,7 +1085,7 @@ struct TypeAlias {
}
```
Type alias.
::: tip
::: info
**Implemented Traits**
- Kind
:::
Expand All @@ -1100,7 +1100,7 @@ struct TypeKind {
}
```
Type alias.
::: tip
::: info
**Implemented Traits**
- Kind
:::
Expand Down Expand Up @@ -1164,7 +1164,7 @@ struct Prim {
}
```
Primitive type.
::: tip
::: info
**Implemented Traits**
- Kind
:::
Expand Down Expand Up @@ -1227,7 +1227,7 @@ struct Slc {
}
```
Slice type.
::: tip
::: info
**Implemented Traits**
- Kind
:::
Expand All @@ -1240,7 +1240,7 @@ struct Tuple {
}
```
Tuple type.
::: tip
::: info
**Implemented Traits**
- Kind
:::
Expand All @@ -1254,7 +1254,7 @@ struct Map {
}
```
Map type.
::: tip
::: info
**Implemented Traits**
- Kind
:::
Expand All @@ -1267,7 +1267,7 @@ struct Arr {
}
```
Array type.
::: tip
::: info
**Implemented Traits**
- Kind
:::
Expand All @@ -1280,7 +1280,7 @@ struct Ptr {
}
```
Pointer type.
::: tip
::: info
**Implemented Traits**
- Kind
:::
Expand Down

0 comments on commit df4f8e8

Please sign in to comment.