Commit Graph

16 Commits

Author SHA1 Message Date
Niklas Larsson
26cb165e59 Merge branch 'master' into exportiface_js 2017-09-18 12:14:17 +02:00
Jason Felice
d4bd8e6353 Clean up unused imports (#4065) 2017-09-16 19:28:47 +02:00
Rui Barreiro
d3f9138ecc interface parameter is passed to codegen 2017-09-14 18:36:19 +01:00
Niklas Larsson
4a1c2a1b5f Refactoring: Move options out of AbsSyntax 2017-07-20 22:14:37 +02:00
Echo Nolan
e6ceb5c724 Alphabetize and indent imports and LANGUAGE pragmas
I ran stylish-haskell over everything. The import grouping was
inconsistent so I just picked something: Idris.* and IRTS.*, then Util,
then autogenerated files, then modules from other packages.
2016-09-30 21:37:52 -07:00
Jan de Muijnck-Hughes
2842bacaed Tidying of idrisMain (fixes #1454).
Introduction of a new module `Idris.Main` that contains the code
required to launch and run an interactive Idris session---compilation,
REPL et cetera. It has been spun out of `Idris.REPL`; common code has
been spun out from both into `Idris.ModeCommon`.

With `Idris.Main` comes a new entry point for Idris and presents
developers with a more unified API for running Idris programs. A side
affect of this approach is that the imports for codegens must be
changed to import `Idris.Main` and not `Idris.REPL`.
2016-08-30 15:07:16 +01:00
Niklas Larsson
d2a8c3e3c7 Fold portable into Codegen 2016-05-16 22:24:58 +02:00
Niklas Larsson
b19d03cfb9 Remove --yes-really
See discussion on #2579
2015-09-11 17:59:27 +02:00
Сухарик
c3827997c7 improve the usage message a bit more 2015-09-06 10:43:29 +03:00
Сухарик
524c223ee1 improve help messages
Bonus: usage is not shown on incorrect codegen args
2015-09-04 04:17:16 +03:00
Сухарик
18450ff1ec avoid confusion between the compiler and codegens 2015-09-04 03:03:07 +03:00
Niklas Larsson
b9b19e578f Implement bundled toolchain feature 2015-04-02 17:21:08 +02:00
Edwin Brady
d4371e69c3 Generate interface files for C->Idris calls
--interface command line option will generate header files from any
FFI_Export structures, and compile as a .o rather than as an executable.
2015-03-07 22:09:51 +00:00
raichoo
f905a795c8 javascript: lift out node backend 2014-08-22 17:50:29 +02:00
raichoo
31de6beaf8 javascript: lift out javascript backend 2014-08-22 17:45:08 +02:00
Edwin Brady
c6574b43c6 Added idris-c executable
Eventually, this should be the only way to invoke code generators (by
invoking "idris-foo Main.ibc" for the code generator for backend foo.

For the moment, this serves as an example 'main' for any new code
generators, and *all* new code generators should be implemented this
way.
2014-08-07 15:06:17 +01:00