Skip to content

Commit

Permalink
fix style errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dours committed Sep 12, 2022
1 parent f898162 commit 7948388
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
package org.polystat.py2eo.transpiler

import org.polystat.py2eo.parser.{ArgKind, Expression, GeneralAnnotation, Statement}
import org.polystat.py2eo.parser.Expression.{AnonFun, Assignment, Await, Binop, CallIndex, CollectionComprehension, CollectionCons, DictComprehension, DictCons, DoubleStar, EllipsisLiteral, FloatLiteral, FreakingComparison, GeneratorComprehension, Ident, ImagLiteral, IntLiteral, Parameter, SimpleComparison, Slice, Star, StringLiteral, T, UnsupportedExpr, Yield, YieldFrom}
import org.polystat.py2eo.parser.Statement.{AnnAssign, Assert, Assign, AugAssign, Break, ClassDef, Continue, Decorators, Del, For, FuncDef, Global, ImportAllSymbols, ImportModule, ImportSymbol, NonLocal, Pass, Raise, Return, Try, Unsupported, While, With}
import org.polystat.py2eo.parser.Expression.{
AnonFun, Assignment, Await, Binop, CallIndex, CollectionComprehension, CollectionCons, DictComprehension,
DictCons, DoubleStar, EllipsisLiteral, FloatLiteral, FreakingComparison, GeneratorComprehension, Ident,
ImagLiteral, IntLiteral, Parameter, SimpleComparison, Slice, Star, StringLiteral, T, UnsupportedExpr, Yield, YieldFrom
}
import org.polystat.py2eo.parser.Statement.{
AnnAssign, Assert, Assign, AugAssign, Break, ClassDef, Continue, Decorators, Del, For, FuncDef, Global,
ImportAllSymbols, ImportModule, ImportSymbol, NonLocal, Pass, Raise, Return, Try, Unsupported, While, With
}
import org.polystat.py2eo.transpiler.StatementPasses.NamesU

object MarkUnsupportedConstructions {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ package org.polystat.py2eo.transpiler

import org.polystat.py2eo.parser.Expression.{AnonFun, Assignment, CallIndex, Field, Ident, Parameter, T}
import org.polystat.py2eo.parser.Statement
import org.polystat.py2eo.parser.Statement.{ClassDef, CreateConst, FuncDef, Global, ImportAllSymbols, ImportModule, ImportSymbol, NonLocal, SimpleObject, Try, Unsupported}
import org.polystat.py2eo.parser.Statement.{
ClassDef, CreateConst, FuncDef, Global, ImportAllSymbols, ImportModule, ImportSymbol, NonLocal, SimpleObject, Try, Unsupported
}
import org.polystat.py2eo.transpiler.StatementPasses.NamesU

object PrefixIdentsWithX {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ object Transpile {
debugPrinter(rmExceptsAgain._1, "afterRmExceptsAgain")
val simIfAgain = StatementPasses.procStatement(SimplifyIf.simplifyIf)(rmExceptsAgain._1, rmExceptsAgain._2)
debugPrinter(simIf._1, "simplifyIf")
val simConcatStringLit = StatementPasses.simpleProcExprInStatement(Expression.map(ConcatStringLiteral.concatStringLiteral))(simIfAgain._1, simIfAgain._2)
val simConcatStringLit = StatementPasses.simpleProcExprInStatement(
Expression.map(ConcatStringLiteral.concatStringLiteral))(simIfAgain._1, simIfAgain._2)
debugPrinter(simConcatStringLit._1, "afterConcatStringLit")
val simxPrefixSt = StatementPasses.procStatement(PrefixIdentsWithX.xPrefixInStatement)(simConcatStringLit._1, simConcatStringLit._2)
debugPrinter(simxPrefixSt._1, "afterXPrefixSt")
Expand Down

0 comments on commit 7948388

Please sign in to comment.