Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repl in command line #210

Merged
merged 116 commits into from
May 31, 2020
Merged

Repl in command line #210

merged 116 commits into from
May 31, 2020

Conversation

ice1000
Copy link
Contributor

@ice1000 ice1000 commented Apr 26, 2020

C:\Users\ice10\git-repos\Arend\Arend\cli\build\libs>java -jar cli-1.3.0-full.jar -i
λ 1 Nat.+ 1
1 + 1
λ :whnf 1 Nat.+ 1
2
λ :nf 2 Nat.* 3
6
λ :type 1
Nat
λ :type idp
\Pi {A : \Type} -> \Pi {a : A} -> a = a
λ a
[ERROR] Repl:1:1: Cannot resolve reference 'a'
λ \func test => 1
λ test
test
λ :t test
Nat
λ \func test2 => test
λ :t test2
Nat
λ \func id {A : \Type} (a : A) => a
λ :t id
\Pi {A : \Type} -> A -> A
λ id 1
id {Nat} 1
λ :whnf id 1
1

Resolves #135

@ice1000 ice1000 added the repl label Apr 26, 2020
@ice1000 ice1000 added this to the 1.4 milestone Apr 26, 2020
@ice1000 ice1000 requested a review from valis April 26, 2020 20:14
@ice1000 ice1000 self-assigned this Apr 26, 2020
@ice1000 ice1000 force-pushed the repl branch 2 times, most recently from 65d07bd to afd852c Compare April 26, 2020 20:27
@ice1000
Copy link
Contributor Author

ice1000 commented Apr 26, 2020

TODO: add completions, help message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

REPL
1 participant