Commit Graph

41 Commits (master)

Author SHA1 Message Date
Yury Kurlykov 8bba41bd45
Add CI badge in README.md 2020-06-28 18:06:34 +10:00
Yury Kurlykov ff8341e20c
Fix ANTLR4 file generation in CI 2020-06-28 18:02:06 +10:00
Yury Kurlykov 897207a11d
Integrate GitHub Actions 2020-06-28 17:57:37 +10:00
Yury Kurlykov 6e910b77b2
Configure tox to run tests 2020-06-28 17:54:53 +10:00
Yury Kurlykov 26dbd6ee10
Add *proper* tests 2020-06-28 17:24:38 +10:00
Yury Kurlykov 3641570e4b
Implement CST to AST convert (WIP)
Another one.
2020-06-28 16:49:25 +10:00
Yury Kurlykov e7f1cc89b9
Fix string literal has quotes 2020-06-28 16:48:35 +10:00
Yury Kurlykov 9f0646c6f0
Fix ghost nodes appearing in AST
Never _ever_ underestimate the power of testing. The previous state of the code was OK iff the only file needs to be parsed.
2020-06-28 15:34:15 +10:00
Yury Kurlykov 5be6f96098
Implement CST to AST convert (WIP)
Not perfect, but still.
2020-06-28 03:07:02 +10:00
Yury Kurlykov 5024ca003b
Add short mode for AST printing 2020-06-28 03:05:00 +10:00
Yury Kurlykov 5cd616ceb3
Add basic test 2020-06-26 16:43:51 +10:00
Yury Kurlykov ab066f9cd6
Add test with a bug 2020-06-26 16:41:29 +10:00
Yury Kurlykov ea923d2273
Commit last changes 2020-06-26 16:24:06 +10:00
Yury Kurlykov 44d7e2410f
Comment out RegularExpressionLiteral
I'm not going to implement RegExp in the nearest future, so I don't think it is needed there uncommented.
2020-04-30 00:58:22 +10:00
Yury Kurlykov 2708b1e61f
Add specific Literal classes
They are needed for the further development convenience.
2020-04-30 00:55:25 +10:00
Yury Kurlykov c504830928
Add ES2020 nodes 2020-04-28 18:41:51 +10:00
Yury Kurlykov 85aa1b2a34
Add ES2018 nodes 2020-04-28 16:55:26 +10:00
Yury Kurlykov 245bae4175
Make Property ES6+ compliant 2020-04-28 16:51:14 +10:00
Yury Kurlykov 74d53ddf34
Add ES2016 nodes
A whole standard just for power operator? ECMA must be kidding.
2020-04-28 16:05:37 +10:00
Yury Kurlykov 7a1eca4aca
Add ES2015 nodes 2020-04-28 15:54:16 +10:00
Yury Kurlykov b4bbc8460e
Raise NotImplementedError on WIP nodes 2020-04-28 15:53:28 +10:00
Yury Kurlykov ace635c999
Implement EmptyStatement node generation
I don't even know what does the "procrastination" word mean. `EmptyStatement` is the most useful node ever.
2020-04-28 15:52:35 +10:00
Yury Kurlykov 5266ebed21
Add .gitignore to repo
It was there since day one, but I forgot to exclude it from the gitignore itself. Well, it happens.
2020-04-28 12:04:52 +10:00
Yury Kurlykov afe6c8d244
Add __init__.py in lex module
First of all, it has a docstring.
2020-04-28 12:01:35 +10:00
Yury Kurlykov ea5b03d93e
Fix import statements
I just found out my project couldn't run anywhere but IDE.
2020-04-28 12:00:06 +10:00
Yury Kurlykov 42b4e40d9e
Add `name` field in Identifier 2020-04-28 11:20:15 +10:00
Yury Kurlykov 6372a043a2
Fix ImportError
It is not the best idea to name a module just like the native one.
2020-04-28 11:19:40 +10:00
Yury Kurlykov 041f4c31fb
Expose `start` and `end` fields in SourceLocation 2020-04-28 04:39:50 +10:00
Yury Kurlykov 6b4865af8d
Print AST as info
Debug channel barely suits for this case.
2020-04-28 04:38:13 +10:00
Yury Kurlykov eea056550c
Implement AST printout
File output coming soon...
2020-04-28 04:28:53 +10:00
Yury Kurlykov 494ed06f28
Implement variable statement AST generation (WIP) 2020-04-28 04:28:14 +10:00
Yury Kurlykov 47d6d31239
Fix a typo in VariableDeclarator type hints 2020-04-28 04:26:33 +10:00
Yury Kurlykov 6414fecbfe
Add AST to ASCII converter 2020-04-28 03:30:37 +10:00
Yury Kurlykov c09b52638c
Add ESTree link in README.md 2020-04-27 23:13:42 +10:00
Yury Kurlykov 7f68959590
Make a huge load of changes
- Remove visitors
- Add logging
- Add file read
- Make ESTree nodes work
- Move JS input streams to its own module
- Implement parse tree listeners (WIP)
- Add custom error listener (WIP)
2020-04-27 23:07:15 +10:00
Yury Kurlykov 0a85994fae
Comment out throw keyword
Exceptions are not going to be implemented soon.
2020-04-27 22:57:54 +10:00
Yury Kurlykov dc7502aa57
Implement ES5 part of JavaScript AST 2020-04-26 23:10:26 +10:00
Yury Kurlykov 124d299d23
Postpone template strings and for/of support 2020-04-26 21:21:03 +10:00
Yury Kurlykov e10f7cca41
Wake up the snake 2020-04-15 16:45:22 +10:00
Yury Kurlykov 8b88405fc5
Print parsed string tree 2020-04-15 16:32:57 +10:00
Yury Kurlykov 812f5107c3
Initial commit 2020-04-15 16:15:56 +10:00