Skip to content

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Aug 15, 2023
1 parent ef04413 commit 8f3c00b
Show file tree
Hide file tree
Showing 2 changed files with 201 additions and 1 deletion.
200 changes: 200 additions & 0 deletions src/standard-library/std-jule-build.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,3 +268,203 @@ Log kinds.
**Fields:**
- `Flat`: Just text.
- `Error`: Error message.

---

```jule
enum LogMsg
```
Compiler log messages with formatting.

**Fields:**
- `Empty`
- `StdlibNotExist`
- `FileNotUseable`
- `FileNotJule`
- `NoEntryPoint`
- `DuplicatedIdent`
- `ExtraClosedParent`
- `ExtraClosedBrace`
- `ExtraClosedBracket`
- `WaitCloseParent`
- `WaitCloseBrace`
- `WaitCloseBracket`
- `ExpectedParentClose`
- `ExpectedBraceClose`
- `ExpectedBracketClose`
- `BodyNotExist`
- `OperatorOverflow`
- `IncompatibleTypes`
- `OperatorNotForJuleType`
- `OperatorNotForFloat`
- `OperatorNotForInt`
- `OperatorNotForUint`
- `IdentNotExist`
- `NotFnCall`
- `ArgumentOverflow`
- `FnHaveRet`
- `FnHaveParameters`
- `FnIsUnsafe`
- `RequireRetExpr`
- `VoidFnRetExpr`
- `BitShiftMustUnsigned`
- `LogicalNotBool`
- `AssignConst`
- `AssignRequireLvalue`
- `AssignTypeNotSupportValue`
- `InvalidToken`
- `InvalidSyntax`
- `InvalidType`
- `InvalidNumericRange`
- `InvalidOperator`
- `InvalidExprForUnary `
- `InvalidEscapeSeq`
- `InvalidTypeSource`
- `InvalidPragmaDirective`
- `InvalidTypeForConst`
- `InvalidValueForKey`
- `InvalidExpr`
- `InvalidCppExt`
- `InvalidLabel`
- `MissingValueForTypeInference`
- `MissingType`
- `MissingExpr`
- `MissingBlockCommentClose`
- `MissingRuneEnd`
- `MissingRet`
- `MissingStrEnd`
- `MissingMultiRet`
- `MissingMultiAssignIdents`
- `MissingUsePath`
- `MissingPragmaDirective`
- `MissingGotoLabel`
- `MissingExprFor`
- `MissingGenerics`
- `MissingReceiver`
- `MissingFnParentheses`
- `ExprNotConst`
- `NilForTypeInference`
- `VoidForTypeInference`
- `RuneEmpty`
- `RuneOverflow`
- `NotSupportsIndexing`
- `NotSupportsSlicing`
- `AlreadyConst`
- `AlreadyVariadic`
- `AlreadyReference`
- `DuplicateUseDecl`
- `IgnoreIdent`
- `OverflowMultiAssignIdents`
- `OverflowRet`
- `BreakAtOutOfValidScope`
- `ContinueAtOutOfValidScope`
- `IterWhileRequireBoolExpr`
- `IterRangeRequireEnumerableExpr`
- `MuchRangeVars`
- `IfRequireBoolExpr`
- `ElseHaveExpr`
- `VariadicParamNotLast`
- `VariadicWithNonVariadicable`
- `MoreArgsWithVariadiced`
- `TypeNotSupportsCasting`
- `TypeNotSupportsCastingTo`
- `UseAtContent`
- `UseNotFound`
- `UsedPackageHasErrors`
- `DefNotSupportPub`
- `ObjNotSupportSubFields`
- `ObjHaveNotIdent`
- `TypeNotSupportSubFields`
- `TypeHaveNotIdent`
- `DocCouldntGenerated`
- `DeclaredButNotUsed`
- `ExprNotFnCall`
- `LabelExist`
- `LabelNotExist`
- `GotoJumpsDeclarations`
- `FnNotHasParam`
- `AlreadyHasExpr`
- `ArgMustTargetToField`
- `OverflowLimits`
- `GenericsOverflow`
- `HasGenerics`
- `NotHasGenerics`
- `TypeNotSupportsGenerics`
- `DivByZero`
- `TraitHaveNotIdent`
- `NotImplTraitDef`
- `DynamicTypeAnnotationFailed`
- `FalltroughWrongUse`
- `FallthroughIntoFinalCase`
- `UnsafeBehaviorAtOutOfUnsafeScope`
- `RefMethodUsedWithNotRefInstance`
- `MethodAsAnonFn`
- `GenericedFnAsAnonFn`
- `IllegalCycleRefersItself`
- `IllegalCrossCycle`
- `AssignToNonMut`
- `AssignNonMutToMut`
- `RetWithMutTypedNonMut`
- `MutOperationOnImmut`
- `TraitHasRefParamFn`
- `EnumHaveNotField`
- `DuplicateMatchType`
- `CppLinkedVarHasExpr`
- `CppLinkedVarIsConst`
- `ConstVarNotHaveExpr`
- `RefRefsRef`
- `RefRefsPtr`
- `RefRefsArr`
- `RefRefsEnum`
- `PtrPointsRef`
- `PtrPointsEnum`
- `MissingExprForUnary`
- `InvalidOpForUnary`
- `UseDeclAtBody`
- `ArrayAutoSized`
- `NamespaceNotExist`
- `ImplBaseNotExist`
- `ImplDestNotExist`
- `StructAlreadyHaveIdent`
- `UnsafePtrIndexing`
- `MethodHasGenericWithSameIdent`
- `TupleAssignToSingle`
- `MissingCompilePath`
- `ArraySizeIsNotInt`
- `ArraySizeIsNeg`
- `BuiltinAsNonFn`
- `TypeCaseHasNotValidExpr`
- `IllegalImplOutOfPackage`
- `MethodNotInvoked`
- `DuplicatedUseSelection`
- `IdentIsNotAccessible`
- `InvalidStmtForNext`
- `ModuloWithNotInt`
- `PkgIllegalCycleRefersItself`
- `PkgIllegalCrossCycle`
- `RefersTo`
- `NoFileInEntryPackage`
- `NoMemberInEnum`
- `TypeIsNotDerives`
- `CloneNonLvalue`
- `CloneImmutStruct`
- `InternalTypeNotSupportsClone`
- `TypeNotCompatibleForDerive`
- `PassDirectiveNotStartsWithDash`
- `DeriveIllegalCycleRefersItself`
- `DeriveIllegalCrossCycle`
- `InvalidExprForBinop`
- `CppLinkedStructForRef`
- `TraitMethodHasGenerics`
- `EnumAsMapVal`
- `GlobalNotStatic`
- `StaticIsTypeInferred`
- `StaticNotHaveExpr`
- `StaticFnHasReceiver`
- `RefAssignNonVar`
- `MutRefPointsImmut`
- `RefNotInited`
- `ConstRef`
- `RefIsDangling`
- `ConcurrenctCallWithRefParam`
- `UsedRefInAnonFnFromParentScope`
2 changes: 1 addition & 1 deletion src/unsafe-jule/raw-pointers.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ The fact that this operation is covered by Unsafe Jule is not only because it ha
When you have an array of pointers, it can be interpreted semantically like this: It is a pointer to the component type, as the pointer usually points to one of the memory areas. So think of it like a pointer to the field of an element of an array. Indexing is sensitive to the data type according to the offset, skipping that much space in the memory, finding the position of the offset and selecting that area.

To better understand data type sampling, array pointers can be interpreted as:
- `*int` = `[]int `
- `*int` = `[]int`
- `*str` = `[]str`

For example:
Expand Down

0 comments on commit 8f3c00b

Please sign in to comment.