25 Commits (a62a42b272923f95b7aeb30f0196cfdf3b251264)

Author SHA1 Message Date
Xavier Claessens 7ac6afe265 mparser: Further cleanup node definitions 2 years ago
Dylan Baker 1ed1c8e2b0 mparser: add equality operators to nodes 2 years ago
Eli Schwartz cc23996266
mparser: Add partial AST to exceptions 2 years ago
Eli Schwartz 9423631b76
mparser: use an inherited ParseException everywhere 2 years ago
Eli Schwartz 774212e738
Revert "Exit meson with an error if an invalid escape sequence is found in a" 2 years ago
Xavier Claessens f0dc61a764 interpreter: Add testcase..endtestcase clause support 2 years ago
Eli Schwartz 680b5ff819
treewide: add future annotations import 2 years ago
Dylan Baker 7b59a2e3ea mparser: Use a literal for the ComparisonNode 2 years ago
Dylan Baker 8f9c6c10c4 mparser: Don't create an exception to pass to mlog.warning 2 years ago
Dylan Baker 7460ab20cd mlog: move code for printing code with a caret to the mlog module 2 years ago
Dylan Baker 3e55891ae7 mparser: don't pass a SimpleNamespace where a BaseNode is expected 2 years ago
Eli Schwartz e5a9272034
typing: fix some broken Sequence annotations 2 years ago
Dylan Baker 4da14918cd pylint: enable consider-using-in 2 years ago
Peter Lesslie d771fc7d0b Add support for multiline f-strings 3 years ago
Eli Schwartz 2974f2bcb8
fix malformed warning to print the way it was meant to print 3 years ago
Eli Schwartz aa0450adda
fix a couple misuses of textwrap.dedent 3 years ago
Eli Schwartz 4b351aef26
first pass at migrating to dataclasses 3 years ago
Dylan Baker 4d7031437c pylint: turn on superflous-parens 3 years ago
Dylan Baker 278942a447 pylint: enable consider-iterating-dictionary 3 years ago
Laurin-Luis Lehning 130adef778 Add support for basic format strings 4 years ago
Eli Schwartz 6a0fabc647
mass rewrite of string formatting to use f-strings everywhere 4 years ago
Daniel Mensinger e681235e5f
typing: fix code review 4 years ago
Daniel Mensinger fb9738b8c7
typing: fully annotate mparser.py 4 years ago
Daniel Mensinger 96eeef62ea
ast: Add AST JSON printer 5 years ago
Dylan Baker 29ef4478df compilers/d: Add b_ndebug support 5 years ago
Andrei Alexeyev 2cfbb36a84 mparser: fix precedence of arithmetic operators 5 years ago
Daniel Mensinger d67888bf9b
types: Remove redundant __init__() -> None annotation 5 years ago
Daniel Mensinger 0302a697b8
types: Use import typing as T 5 years ago
Daniel Mensinger ab988198c7
review: Initial fixup 5 years ago
Daniel Mensinger a75255bc4c
types: Annotate the AST visitors 5 years ago
Daniel Mensinger c14aea2812
types: Annotate mparser.py 5 years ago
Jon Turney c8f8d58273
Rename 'subdir' -> 'filename' in location objects 5 years ago
Daniel Mensinger e4a0ee205d lgtm: Fix redundant code 5 years ago
Xavier Claessens 9b1a857473 dict: Fully evaluate keys 5 years ago
Marc Herbert 80bfe593fc mparser.py: actually check the type of key variable, not its value 5 years ago
fchin 4e460f04f3 Fixed issue that the key's value type wasn't checked correctly. 5 years ago
franczc adb4e071e6 Adding dictionary entry using string variable as key. 5 years ago
Daniel Mensinger 2b5831f94f
Fix flake8-bugbear warnings 6 years ago
Jon Turney ccc4ce28cc consistent invalid escape sequence behaviour 6 years ago
Daniel Mensinger 5a22bb7901 rewriter: Use mparser to detect the end of some nodes 6 years ago
Dylan Baker 841da29d2c Fix ternary in thing (#5007) 6 years ago
Daniel Mensinger 4b7b5a7185
Fixed flake8 6 years ago
Daniel Mensinger 24a2cf02e2
Can now find the assignment node of a value 6 years ago
Michael Hirsch, Ph.D da34bea893 pep8 py37 6 years ago
Daniel Mensinger e089eb7665
Fixed line and column numbers for dict and array nodes 6 years ago
Daniel Mensinger ccad493e85
Basic AST visitor pattern 6 years ago
Xavier Claessens 90c9b868b2 parser: Fix line continuation outside of (), [] or {} 6 years ago
Xavier Claessens a816e1c1fa Interpreter: Add 'continue' and 'break' keywords 6 years ago
Xavier Claessens fa2e096aa0 Interpreter: Add "in" and "not in" operators 6 years ago
Xavier Claessens e7dcf5cf16 Warn for future keyword (#3908) 6 years ago