1
1
mirror of https://github.com/github/semantic.git synced 2024-12-27 00:44:57 +03:00
Commit Graph

148 Commits

Author SHA1 Message Date
Ayman Nadeem
7c221edcb7 this is no longer a string 2019-10-03 18:56:11 -04:00
Ayman Nadeem
6bd28316b3 need a datatype for input 2019-10-03 18:22:50 -04:00
Ayman Nadeem
572f4a555e move this 2019-10-03 18:12:16 -04:00
Ayman Nadeem
eaa38b3736 maybe introduce a separate datatype for formats? 2019-10-03 18:12:04 -04:00
Ayman Nadeem
40844a6c16 generateAST is responsible for parsing the bytestring 2019-10-03 18:11:44 -04:00
Ayman Nadeem
d8757e898c factor opts out of main 2019-10-03 18:11:28 -04:00
Ayman Nadeem
29e8048785 allow user to pass in a file or stdin 2019-10-03 17:57:21 -04:00
Ayman Nadeem
7570af708e define a way to pass in a file 2019-10-03 17:56:54 -04:00
Ayman Nadeem
ac5e0af406 define a way to pass in something from stdin 2019-10-03 17:56:38 -04:00
Ayman Nadeem
17f696fd49 change main to call generateAST 2019-10-02 15:25:11 -04:00
Ayman Nadeem
b4a0968406 move parseByteString into new generateAST function 2019-10-02 15:25:03 -04:00
Ayman Nadeem
ebdf8032e4 create a function to specify command line help text 2019-10-02 15:24:33 -04:00
Ayman Nadeem
edc214ce05 create semanticAST datatype 2019-10-02 15:24:17 -04:00
Ayman Nadeem
0abb65e4f4 let's try to use opt-parse applicative now 2019-10-02 14:34:58 -04:00
Ayman Nadeem
3e17a9b50d back to head 2019-10-02 14:34:41 -04:00
Ayman Nadeem
c051a786be use index 0 instead of head to get first element of arg list 2019-10-02 06:36:22 -04:00
Ayman Nadeem
86dc3f811b print output of parseByteString 2019-10-01 18:38:36 -04:00
Ayman Nadeem
1a0cdc2fb8 read entire file specified into a bytestring 2019-10-01 18:38:22 -04:00
Ayman Nadeem
e0a1a8091c take the first element so it's String not [String] 2019-10-01 18:37:23 -04:00
Ayman Nadeem
4d6ef1cf5c this is wrong 2019-10-01 18:37:11 -04:00
Ayman Nadeem
02ec2662ab get args 2019-10-01 18:36:44 -04:00
Ayman Nadeem
238b744668 I want IO () 2019-10-01 18:36:35 -04:00
Ayman Nadeem
27037ced1c FilePath is a type synonym for String 2019-10-01 18:36:00 -04:00
Ayman Nadeem
06fc90b1c8 need readFile 2019-10-01 18:35:50 -04:00
Ayman Nadeem
38c2c28f90 🚮extra space 2019-10-01 17:05:38 -04:00
Ayman Nadeem
d963e7ee79 change this to reflect parseByteString's type signature for now 2019-10-01 17:04:18 -04:00
Ayman Nadeem
bc6e624ae9 🚮 2019-10-01 17:04:01 -04:00
Ayman Nadeem
a05bdcb68f unmarshal and friends 2019-10-01 17:03:37 -04:00
Ayman Nadeem
5a17ad5beb need ByteString 2019-10-01 17:03:27 -04:00
Ayman Nadeem
d6ae2fc594 access range and span 2019-10-01 17:03:18 -04:00
Ayman Nadeem
da9ad89897 access getArgs via System.Environment 2019-10-01 17:03:02 -04:00
Ayman Nadeem
0b22d3fdab delete unnecessary imports 2019-10-01 17:02:30 -04:00
Ayman Nadeem
b62d625f27 new name who dis 2019-10-01 17:02:08 -04:00
Ayman Nadeem
d6750b6f57 love me some type applications 2019-10-01 17:01:50 -04:00
Ayman Nadeem
29d795b0be let's try to build an MVP without optparse-applicative 2019-10-01 15:38:57 -04:00
Ayman Nadeem
308172d2f1 don't need installSignalHandlers 2019-10-01 15:38:40 -04:00
Ayman Nadeem
728b55a83a depend on bytestring 2019-10-01 15:38:13 -04:00
Ayman Nadeem
186e68fe77 depend on tree-sitter-python 2019-10-01 15:38:04 -04:00
Ayman Nadeem
b0b2a5f3f3 depend on semantic-source 2019-10-01 15:37:56 -04:00
Ayman Nadeem
dc5f2e602b depend on tree-sitter 2019-10-01 15:37:50 -04:00
Ayman Nadeem
7e490d5715 don't need graph command 2019-10-01 11:27:05 -04:00
Ayman Nadeem
65dba45afb don't need arguments parser 2019-10-01 11:26:16 -04:00
Ayman Nadeem
6169b9ade4 don't need diff command 2019-10-01 11:25:40 -04:00
Ayman Nadeem
9b490bcdde copy-pasta of entire CLI module 2019-10-01 11:25:14 -04:00
Ayman Nadeem
f8c624d1b8 add test file 2019-09-30 16:13:42 -04:00
Ayman Nadeem
c389cb8add create README 2019-09-10 15:13:39 -04:00
Ayman Nadeem
01b1e33f80 include semantic-ast 2019-09-10 15:12:41 -04:00
Ayman Nadeem
540ca825c5 create semantic-ast 2019-09-10 14:07:58 -04:00