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
Require Import Arith. | |
Goal forall m n : nat, (n * 10) + m = (10 * n) + m. | |
Proof. | |
intros. | |
rewrite mult_comm. | |
reflexivity. | |
Qed. |
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
Require Import Arith. | |
Goal forall n m p q : nat, (n + m) + (p + q) = (n + p) + (m + q). | |
Proof. | |
intros. | |
rewrite (plus_assoc (n + m) p q). | |
rewrite (plus_assoc (n + p) m q). | |
rewrite <- (plus_assoc n m p). | |
rewrite <- (plus_assoc n p m). | |
rewrite (plus_comm m p). |
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
Require Import Arith. | |
Goal forall n m p q : nat, (n + m) + (p + q) = (n + p) + (m + q). | |
Proof. | |
intros. | |
rewrite (plus_assoc (n + m) p q). | |
rewrite (plus_assoc (n + p) m q). | |
rewrite <- (plus_assoc n m p). | |
rewrite <- (plus_assoc n p m). | |
rewrite (plus_comm m p). |
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
Parameter G : Set. | |
Parameter mult : G -> G -> G. | |
Notation "x * y" := (mult x y). | |
Parameter one : G. | |
Notation "1" := one. | |
Parameter inv : G -> G. | |
Notation "/ x" := (inv x). | |
Axiom mult_assoc : forall x y z, x * (y * z) = (x * y) * z. | |
Axiom one_unit_l : forall x, 1 * x = x. |
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
Require Import Arith. | |
Fixpoint sum_odd(n:nat) : nat := | |
match n with | |
| 0 => 0 | |
| S m => 1 + m + m + sum_odd m | |
end. | |
Goal forall n, sum_odd n = n * n. | |
Proof. |
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
スクリプトは 2014年07月23日 15時16分18秒 | |
に開始しました[1m[3m%[23m[1m[0m | |
[0m[23m[24m[J([K[98C[31m:branch[00m master [31m:cwd[00m ~/compile/mirah)[134D[?1h=rrm -rf dist/[?1l> | |
[1m[3m%[23m[1m[0m | |
[0m[23m[24m[J([K[98C[31m:branch[00m master [31m:cwd[00m ~/compile/mirah)[134D[?1h=mmvn[?1l> |
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
diff --git a/src/org/mirah/tool/mirahc.mirah b/src/org/mirah/tool/mirahc.mirah | |
index 754008f..dcbe23e 100644 | |
--- a/src/org/mirah/tool/mirahc.mirah | |
+++ b/src/org/mirah/tool/mirahc.mirah | |
@@ -31,12 +31,13 @@ class Mirahc < MirahTool | |
end | |
def self.main(args:String[]):void | |
- result = compile(args) | |
+ mirahc = Mirahc.new() |
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
diff --git a/src/mirahparser/impl/Mirah.mmeta b/src/mirahparser/impl/Mirah.mmeta | |
index 520b75b..b4c3d36 100644 | |
--- a/src/mirahparser/impl/Mirah.mmeta | |
+++ b/src/mirahparser/impl/Mirah.mmeta | |
@@ -1293,7 +1293,8 @@ parser EscapeParser { | |
|codepoint | |
); | |
- regex: unicode_escape | |
+ regex: "\\\\" ! {"\\\\"} |
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
java -jar /home/kim/compile/mirah-parser/javalib/mirahc.jar --classpath /home/kim/compile/mirah-parser/javalib/mirah.jar -d /home/kim/compile/mirah-parser/build ./src/org/mirah/ast/meta.mirah | |
./src/org/mirah/ast/meta.mirah:18: | |
[1m[31mERROR[0m: Cannot find class org.mirahparser.ast.mirah.lang.ast.Block | |
import mirah.lang.ast.Block | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
./src/org/mirah/ast/meta.mirah:19: | |
[1m[31mERROR[0m: Cannot find class org.mirahparser.ast.mirah.lang.ast.CallSite | |
import mirah.lang.ast.CallSite |