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

WIP: simple proof of concept with clojure #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

andrzejsliwa
Copy link

Hi @mehowte,

just made raw proof of concept in clojure to verify some requirements and how everything should works together.

current result:

[proof-of-concept-with-clojure][~/64spec-cli]$ lein run example.asm example1.asm example2.asm                                 
Running  3 tests
Testing: example.asm
  compilation: ok
�OME TESTS ������: (1/3)
Testing: example1.asm
  compilation: ok
�OME TESTS ������: (1/3)
Testing: example2.asm
  compilation: ok

or with one failure of compilation:

[proof-of-concept-with-clojure][~/64spec-cli]$ lein run example.asm example1.asm example2.asm                                 
Running  3 tests
Testing: example.asm
  compilation: ok
�OME TESTS ������: (1/3)
Testing: example1.asm
  compilation:
//------------------------------------------------------
//------------------------------------------------------
//      Kick Assembler v3.42 - (C)2015 Mads Nielsen
//------------------------------------------------------
//------------------------------------------------------
User Arguments: result_file_name=example1.txt, on_exit=jam, write_final_results_to_file=true
parsing
 :describe("register A")
 :it("must be loaded with correct value")
  lda #41
  :assert_a_ equal #42
                   ^

Error: Syntax error
at line 18, column 20 in example1.asm



Testing: example2.asm
  compilation: ok
�OME TESTS ������: (1/3)

there are few issues:

  • vice is not running in headless like you mention before
  • we need to convert result of test from petscii to ascii
  • we need to decide how to configure cli, maybe config in yml?
  • we need to decide how to react for errors in result file (switch color of output, return error level at the end etc).

btw: if you want to build standalone jar please call: lein uberjar

I think we should define first scope of features before I will continue with it

@andrzejsliwa andrzejsliwa changed the title simple proof of concept with clojure WIP: simple proof of concept with clojure Dec 29, 2015
@andrzejsliwa
Copy link
Author

I think that we can also run kickassembler directly from clojure, without running seperate jvm for it (for each file)

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

Successfully merging this pull request may close these issues.

1 participant