File tree 4 files changed +19
-5
lines changed
src/main/scala/ua/ips/algo/translation/languages/scala
4 files changed +19
-5
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ lazy val root = project
17
17
),
18
18
libraryDependencies += " org.scala-lang" %% " scala3-staging" % dottyVersion,
19
19
libraryDependencies += " com.github.scopt" %% " scopt" % " 4.0.1" ,
20
- libraryDependencies += " org.scalameta" %% " munit" % " 0.7.26" % Test ,
20
+ // libraryDependencies += ("org.scalameta" %% "scalameta" % "4.4.28").cross(CrossVersion.for3Use2_13),
21
+ libraryDependencies += " org.scalameta" %% " munit" % " 0.7.27" % Test ,
21
22
testFrameworks += new TestFramework (" munit.Framework" ),
22
23
resolvers += Resolver .sbtPluginRepo(" releases" ),
23
24
git.remoteRepo
:= " [email protected] :ips-kyiv/algorithmic-algebras-embedding.git"
Original file line number Diff line number Diff line change 1
- sbt.version =1.5.3
1
+ sbt.version =1.5.5
Original file line number Diff line number Diff line change @@ -23,7 +23,19 @@ trait ScalaGen {
23
23
def generateName (ctx : IRContext , fullName : Seq [String ]): String =
24
24
fullName.mkString(" ." )
25
25
26
- def genMainNode (ctx : IRContext , name : String ): AstDef = ???
26
+ def genMainNode (ctx : IRContext , name : String ): AstDef = {
27
+ ???
28
+ /*
29
+ val ctx = ScalaGenContext(irCtx)
30
+ val mainDecl = genMainDeclaration(ctx, name)
31
+ val mainDecls: List[DefDef] = List(mainDecl)
32
+ val defintions: List[DefDef] = ctx.functionDefinitions.toList
33
+
34
+ TranslationUnit(
35
+ mainDecls ++ defintions
36
+ )
37
+ */
38
+ }
27
39
28
40
29
41
}
Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ class ScalaLanguage(using val qctx: Quotes) extends Language with ScalaGen {
13
13
14
14
type Ast = Term
15
15
16
- val baseInterpretation : ua.ips.algo.Interpretation = ScalaInterpretation (using qctx)
16
+
17
+ val baseInterpretation : ua.ips.algo.Interpretation = ??? // ScalaInterpretation(using qctx)
17
18
18
19
def constantDef (item : baseInterpretation.DataItem , sort : DataSort ): AstDef = ???
19
20
@@ -25,6 +26,6 @@ class ScalaLanguage(using val qctx: Quotes) extends Language with ScalaGen {
25
26
def signatureDef (items : Seq [AstDef ]): AstDef = ???
26
27
27
28
def write (bundle : OutputBundle , dataDir : String ): Unit = ???
28
-
29
+
29
30
30
31
}
You can’t perform that action at this time.
0 commit comments