-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support unicode in identifiers (#11)
- Loading branch information
Showing
3 changed files
with
41 additions
and
9 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
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 |
---|---|---|
|
@@ -7,3 +7,4 @@ tac2compile_test.v | |
bug_10107.v | ||
minibench.v | ||
compiler_bug_4.v | ||
compiler_bug_6.v |
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,15 @@ | ||
Require Import Ltac2.Ltac2 Ltac2Compiler.Ltac2Compiler. | ||
|
||
Ltac2 foo φ := φ. | ||
|
||
Ltac2 φ () := 1. | ||
|
||
Ltac2 xx () := 2. | ||
|
||
Ltac2 Compile foo φ xx. | ||
|
||
(* "φ" gets replaced by "xx", ensure we avoided collision *) | ||
|
||
Ltac2 Eval Control.assert_true (Int.equal (φ()) 1). | ||
|
||
Ltac2 Eval Control.assert_true (Int.equal (xx()) 2). |