mirror of
https://github.com/anoma/juvix.git
synced 2024-12-21 05:41:49 +03:00
fa2a731833
* Closes #2561 * Defines an extended subset of Cairo Assembly, following Section 5 of [1]. * Adds the commands `juvix dev casm read file.casm` and `juvix dev casm run file.casm` to print and run `*.casm` files. * The tests cover CASM semantics. Some are "manual translations" of corresponding JuvixAsm tests according to the JuvixAsm -> CASM compilation concept.
16 lines
359 B
Haskell
16 lines
359 B
Haskell
module Commands.Dev.Casm.Read.Options where
|
|
|
|
import CommonOptions
|
|
|
|
newtype CasmReadOptions = CasmReadOptions
|
|
{ _casmReadInputFile :: AppPath File
|
|
}
|
|
deriving stock (Data)
|
|
|
|
makeLenses ''CasmReadOptions
|
|
|
|
parseCasmReadOptions :: Parser CasmReadOptions
|
|
parseCasmReadOptions = do
|
|
_casmReadInputFile <- parseInputFile FileExtCasm
|
|
pure CasmReadOptions {..}
|