-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
87 changed files
with
261 additions
and
261 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
appLab1/src/main/kotlin/hummel/Halstead.kt → ...com/github/hummel/msciit/lab1/Halstead.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package hummel | ||
package com.github.hummel.msciit.lab1 | ||
|
||
import java.io.File | ||
import kotlin.math.log2 | ||
|
2 changes: 1 addition & 1 deletion
2
appLab1/src/main/kotlin/hummel/Main.kt → ...lin/com/github/hummel/msciit/lab1/Main.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
appLab2/src/main/kotlin/hummel/Jilbe.kt → ...in/com/github/hummel/msciit/lab2/Jilbe.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package hummel | ||
package com.github.hummel.msciit.lab2 | ||
|
||
import java.util.* | ||
|
||
|
6 changes: 3 additions & 3 deletions
6
appLab2/src/main/kotlin/hummel/Main.kt → ...lin/com/github/hummel/msciit/lab2/Main.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...rc/main/kotlin/hummel/inter/Arithmetic.kt → ...ub/hummel/msciit/lab2/inter/Arithmetic.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
.../src/main/kotlin/hummel/inter/Constant.kt → ...thub/hummel/msciit/lab2/inter/Constant.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...rc/main/kotlin/hummel/inter/Expression.kt → ...ub/hummel/msciit/lab2/inter/Expression.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
appLab2/src/main/kotlin/com/github/hummel/msciit/lab2/inter/Id.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.github.hummel.msciit.lab2.inter | ||
|
||
import com.github.hummel.msciit.lab2.lexer.Word | ||
import com.github.hummel.msciit.lab2.symbols_types.Type | ||
|
||
class Id(word: Word, type: Type?) : Expression(word, type) |
4 changes: 2 additions & 2 deletions
4
appLab2/src/main/kotlin/hummel/inter/Node.kt → ...m/github/hummel/msciit/lab2/inter/Node.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...src/main/kotlin/hummel/inter/Operation.kt → ...hub/hummel/msciit/lab2/inter/Operation.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
appLab2/src/main/kotlin/hummel/inter/Temp.kt → ...m/github/hummel/msciit/lab2/inter/Temp.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...ab2/src/main/kotlin/hummel/inter/Unary.kt → .../github/hummel/msciit/lab2/inter/Unary.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
appLab2/src/main/kotlin/com/github/hummel/msciit/lab2/inter/boolean/Access.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.github.hummel.msciit.lab2.inter.boolean | ||
|
||
import com.github.hummel.msciit.lab2.inter.Expression | ||
import com.github.hummel.msciit.lab2.inter.Id | ||
import com.github.hummel.msciit.lab2.inter.Operation | ||
import com.github.hummel.msciit.lab2.lexer.Tag | ||
import com.github.hummel.msciit.lab2.lexer.Word | ||
import com.github.hummel.msciit.lab2.symbols_types.Type | ||
|
||
class Access(private var id: Id, var expr: Expression, type: Type?) : Operation(Word("[]", Tag.INDEX), type) { | ||
override fun gen(): Expression = Access(id, expr.reduce(), type) | ||
|
||
override fun jumping(t: Int, f: Int): Unit = emitJumps("${reduce()}", t, f) | ||
|
||
override fun toString(): String = "$id [ $expr ] " | ||
} |
6 changes: 3 additions & 3 deletions
6
...c/main/kotlin/hummel/inter/boolean/And.kt → ...b/hummel/msciit/lab2/inter/boolean/And.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
...in/kotlin/hummel/inter/boolean/Logical.kt → ...mmel/msciit/lab2/inter/boolean/Logical.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...c/main/kotlin/hummel/inter/boolean/Not.kt → ...b/hummel/msciit/lab2/inter/boolean/Not.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...rc/main/kotlin/hummel/inter/boolean/Or.kt → ...ub/hummel/msciit/lab2/inter/boolean/Or.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
...c/main/kotlin/hummel/inter/boolean/Rel.kt → ...b/hummel/msciit/lab2/inter/boolean/Rel.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...n/kotlin/hummel/inter/statements/Break.kt → ...mel/msciit/lab2/inter/statements/Break.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...in/kotlin/hummel/inter/statements/Case.kt → ...mmel/msciit/lab2/inter/statements/Case.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...in/kotlin/hummel/inter/statements/Else.kt → ...mmel/msciit/lab2/inter/statements/Else.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...main/kotlin/hummel/inter/statements/If.kt → ...hummel/msciit/lab2/inter/statements/If.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...in/kotlin/hummel/inter/statements/Loop.kt → ...mmel/msciit/lab2/inter/statements/Loop.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...in/kotlin/hummel/inter/statements/Puts.kt → ...mmel/msciit/lab2/inter/statements/Puts.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...otlin/hummel/inter/statements/Sequence.kt → .../msciit/lab2/inter/statements/Sequence.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...ain/kotlin/hummel/inter/statements/Set.kt → ...ummel/msciit/lab2/inter/statements/Set.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...tlin/hummel/inter/statements/Statement.kt → ...msciit/lab2/inter/statements/Statement.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...n/kotlin/hummel/inter/statements/Until.kt → ...mel/msciit/lab2/inter/statements/Until.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...in/kotlin/hummel/inter/statements/When.kt → ...mmel/msciit/lab2/inter/statements/When.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...n/kotlin/hummel/inter/statements/While.kt → ...mel/msciit/lab2/inter/statements/While.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ab2/src/main/kotlin/hummel/lexer/Lexer.kt → .../github/hummel/msciit/lab2/lexer/Lexer.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
appLab2/src/main/kotlin/hummel/lexer/Num.kt → ...om/github/hummel/msciit/lab2/lexer/Num.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
appLab3/src/main/kotlin/hummel/lexer/Real.kt → ...m/github/hummel/msciit/lab2/lexer/Real.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
appLab2/src/main/kotlin/hummel/lexer/Tag.kt → ...om/github/hummel/msciit/lab2/lexer/Tag.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package hummel.lexer | ||
package com.github.hummel.msciit.lab2.lexer | ||
|
||
enum class Tag(val code: Int) { | ||
AND(1025), | ||
|
2 changes: 1 addition & 1 deletion
2
...ab3/src/main/kotlin/hummel/lexer/Token.kt → .../github/hummel/msciit/lab2/lexer/Token.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.