Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
monticore
EmbeddedMontiArc
generators
MathPrettyPrinter
Commits
e3b5071c
Commit
e3b5071c
authored
Aug 23, 2019
by
Bernhard Rumpe
Browse files
BR
parent
771dc42a
Changes
83
Hide whitespace changes
Inline
Side-by-side
src/main/java/de/monticore/lang/monticar/mpp/montimath/MathPrettyPrinter.java
View file @
e3b5071c
/* (c) https://github.com/MontiCore/monticore */
package
de.monticore.lang.monticar.mpp.montimath
;
import
de.monticore.assignmentexpressions._ast.ASTMinusPrefixExpression
;
...
...
src/main/java/de/monticore/lang/monticar/mpp/montimath/MathStructuredVisitor.java
View file @
e3b5071c
/* (c) https://github.com/MontiCore/monticore */
package
de.monticore.lang.monticar.mpp.montimath
;
import
de.monticore.commonexpressions._ast.*
;
...
...
src/main/java/de/monticore/lang/monticar/mpp/montimath/TeXHTMLMathPrettyPrinter.java
View file @
e3b5071c
/* (c) https://github.com/MontiCore/monticore */
package
de.monticore.lang.monticar.mpp.montimath
;
import
de.monticore.lang.math._ast.*
;
...
...
src/main/java/de/monticore/lang/monticar/mpp/montimath/TeXHTMLMathStructuredVisitor.java
View file @
e3b5071c
/* (c) https://github.com/MontiCore/monticore */
package
de.monticore.lang.monticar.mpp.montimath
;
import
de.monticore.lang.math._ast.*
;
...
...
src/main/java/de/monticore/lang/monticar/mpp/montimath/TeXMathPrettyPrinter.java
View file @
e3b5071c
/* (c) https://github.com/MontiCore/monticore */
package
de.monticore.lang.monticar.mpp.montimath
;
import
de.monticore.ast.ASTNode
;
...
...
src/main/java/de/monticore/lang/monticar/mpp/montimath/TeXMathStructuredVisitor.java
View file @
e3b5071c
/* (c) https://github.com/MontiCore/monticore */
package
de.monticore.lang.monticar.mpp.montimath
;
import
de.monticore.lang.math._ast.ASTMathElseIfExpression
;
...
...
src/main/resources/templates/index.ftl
View file @
e3b5071c
<
#--
(
c
)
https:
//
github.com
/
MontiCore
/
monticore
--
>
<
#assign
helper =
glex.getGlobalVar("helper")
>
<!DOCTYPE HTML>
<html>
...
...
@@ -57,4 +58,4 @@
</
#
list>
</ul>
</body>
</html>
\ No newline at end of file
</html>
src/main/resources/templates/js.ftl
View file @
e3b5071c
<#-- (c) https://github.com/MontiCore/monticore -->
var radios = document.querySelectorAll("input[name='View']");
var card = document.querySelector(".card");
var front = document.querySelectorAll(".card-face-front tr");
...
...
@@ -58,4 +59,4 @@
radios.forEach(function(element) { element.addEventListener("change", onChange) });
onHashChange();
window.addEventListener("hashchange", onHashChange);
window.addEventListener("resize", onWindowResize);
\ No newline at end of file
window.addEventListener("resize", onWindowResize);
src/main/resources/templates/script.ftl
View file @
e3b5071c
<
#--
(
c
)
https:
//
github.com
/
MontiCore
/
monticore
--
>
<
#assign
helper =
glex.getGlobalVar("helper")
>
<!DOCTYPE HTML>
<html>
...
...
@@ -190,4 +191,4 @@
<script>
$
{
include
(
"
templates/js.ftl
"
)}
</script>
</html>
\ No newline at end of file
</html>
src/test/java/de/monticore/lang/monticar/mpp/core/application/ApplicationTest.java
View file @
e3b5071c
/* (c) https://github.com/MontiCore/monticore */
package
de.monticore.lang.monticar.mpp.core.application
;
import
de.monticore.lang.monticar.mpp.core.application.Application
;
...
...
src/test/java/de/monticore/lang/monticar/mpp/montimath/HTMLMathPrettyPrinterTest.java
View file @
e3b5071c
/* (c) https://github.com/MontiCore/monticore */
package
de.monticore.lang.monticar.mpp.montimath
;
import
de.monticore.lang.math._ast.ASTMathCompilationUnit
;
...
...
src/test/java/de/monticore/lang/monticar/mpp/montimath/MathPrettyPrinterTest.java
View file @
e3b5071c
/* (c) https://github.com/MontiCore/monticore */
package
de.monticore.lang.monticar.mpp.montimath
;
import
de.monticore.lang.math._ast.ASTMathCompilationUnit
;
...
...
src/test/resources/models/montimath/html/Arithmetic.m
View file @
e3b5071c
...
...
@@ -4,4 +4,4 @@
<span
class=
"comment"
>
//Variable Declaration
</span>
Q rational;
rational = 1 + 2 * 3;
<span
class=
"keyword"
>
end
</span>
\ No newline at end of file
<span
class=
"keyword"
>
end
</span>
src/test/resources/models/montimath/html/Assignments.m
View file @
e3b5071c
...
...
@@ -8,4 +8,4 @@
Q^{2, 2} matC = [1, 1; 1, 1];
matC = matB;
Q D = A;
<span
class=
"keyword"
>
end
</span>
\ No newline at end of file
<span
class=
"keyword"
>
end
</span>
src/test/resources/models/montimath/html/Assignments2.m
View file @
e3b5071c
...
...
@@ -3,4 +3,4 @@
<span
class=
"keyword"
>
script
</span>
Assignments2
Q a = 1;
a = 2;
<span
class=
"keyword"
>
end
</span>
\ No newline at end of file
<span
class=
"keyword"
>
end
</span>
src/test/resources/models/montimath/html/Comments.m
View file @
e3b5071c
<span
class=
"comment"
>
/*
</span>
<span
class=
"comment"
>
* (
C
)
SE RWTH 2018
</span>
<span
class=
"comment"
>
* (
c
)
https://github.com/MontiCore/monticore
</span>
<span
class=
"comment"
>
*/
</span>
<span
class=
"keyword"
>
package
</span>
montimath.vanilla;
...
...
@@ -20,4 +20,4 @@
<span
class=
"keyword"
>
end
</span>
x += 1;
<span
class=
"keyword"
>
end
</span>
<span
class=
"keyword"
>
end
</span>
\ No newline at end of file
<span
class=
"keyword"
>
end
</span>
...
...
src/test/resources/models/montimath/html/Compare.m
View file @
e3b5071c
...
...
@@ -3,4 +3,4 @@
<span
class=
"keyword"
>
script
</span>
Compare
B b;
b = x
<
2;
<
span
class=
"keyword"
>
end
</span>
\ No newline at end of file
<
span
class=
"keyword"
>
end
</span>
src/test/resources/models/montimath/html/Example.m
View file @
e3b5071c
...
...
@@ -10,4 +10,4 @@
<span
class=
"keyword"
>
end
</span>
x += 1;
<span
class=
"keyword"
>
end
</span>
<span
class=
"keyword"
>
end
</span>
\ No newline at end of file
<span
class=
"keyword"
>
end
</span>
src/test/resources/models/montimath/html/ForLoop.m
View file @
e3b5071c
...
...
@@ -5,4 +5,4 @@
<span
class=
"keyword"
>
for
</span>
i = 1:2:9
sum += sum * i;
<span
class=
"keyword"
>
end
</span>
<span
class=
"keyword"
>
end
</span>
\ No newline at end of file
<span
class=
"keyword"
>
end
</span>
src/test/resources/models/montimath/html/ForLoop2.m
View file @
e3b5071c
...
...
@@ -13,4 +13,4 @@
<span
class=
"keyword"
>
end
</span>
x += 1;
<span
class=
"keyword"
>
end
</span>
<span
class=
"keyword"
>
end
</span>
\ No newline at end of file
<span
class=
"keyword"
>
end
</span>
Prev
1
2
3
4
5
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment