All notable changes to the protowhat project will be documented in this file.
- Update parsing class interface for compatibility with antlr-ast
- Support finding dynamic nodes in AST tree (instead of just custom defined nodes)
- Change
ckeck_edge
default value ofindex
argument fromNone
to0
- This is done to break less content
- Now: explicitly define the value of the
index
argument - Later: revert default change and remove unnecessary explicit setting of the
index
argument
- Refactor based on refactor in
antlr-ast>=0.4.1
,antlr-plsql>=0.7.0
andantlr-tsql>=0.11.0
- Support
force_diagnose
State option to force passingdiagnose
tests incheck_correct
.
- Update to work with new ANTLR library versions
- Fix in
has_code()
that was causing issues in some cases.
- Maintenance on docs.
- Update argument names and argument defaults for file-related checks.
- Re-exposing the
state_dec
object in the SCT context so it can be used byshellwhat_ext
andsqlwhat_ext
.
- In
shellwhat
, it is possible that_msg
is None after callingstate.ast_dispatcher.describe
. This is now handled by including a default message for_msg
.
Contains breaking changes!
- More tests
State
now has functionality to stack messages in an array, so you can prepend messages from earliercheck
functions, similar topythonwhat
(using Jinja)
check_field
renamed tocheck_edge
.test_student_typed
renamed tohas_code
.test_or
,test_correct
andtest_not
renamed tocheck_or
,check_correct
andcheck_not
.has_equal_ast
messaging improved (more suggestive).check_node
andcheck_edge
mesaging improved (more suggestive).has_equal_ast
argument names and defaults changed.- The way the reporter raises errors has been improved, allowing for interactive experimentation with SCT functions in the future and easier testing.
- Error handling in the reporter has been cleaned up
- Most of the AST-related documentation has been moved to
sqlwhat
.