Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Mar 2, 2025. It is now read-only.

Conversation

@moosbruggerj
Copy link
Collaborator

  • added factory methods for tokens
  • added convenience constructors for generating asts without the need to provide all tokens
  • added support for delimiter tokens in lists

@codecov
Copy link

codecov bot commented Mar 25, 2019

Codecov Report

Merging #3 into master will decrease coverage by 4.17%.
The diff coverage is 21.36%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master       #3      +/-   ##
==========================================
- Coverage   44.54%   40.36%   -4.18%     
==========================================
  Files          35       37       +2     
  Lines        1805     2113     +308     
==========================================
+ Hits          804      853      +49     
- Misses       1001     1260     +259
Impacted Files Coverage Δ
src/transform/DumpSourcePass.cpp 38.7% <ø> (ø) ⬆️
src/Node.h 16.66% <ø> (ø) ⬆️
src/Type.cpp 13.63% <0%> (-3.51%) ⬇️
src/Context.cpp 0% <0%> (ø)
src/Context.h 0% <0%> (ø)
src/Term.cpp 21.62% <0%> (-1.91%) ⬇️
src/Node.cpp 25.51% <0%> (+4%) ⬆️
src/Formula.cpp 48.93% <0%> (-2.18%) ⬇️
etc/test/example.cpp 100% <100%> (ø) ⬆️
src/Visitor.cpp 19.55% <100%> (-0.26%) ⬇️
... and 15 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 257ee77...5dfa96f. Read the comment docs.

Copy link
Member

@ppaulweber ppaulweber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really good work @moosbruggerj, I've found some minor issues, please fix them and then we can merge this PR ASAP 🚀

TCF,
};

using FormulaFlags = libstdhl::Enum::Flags< FormulaFlag >;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍


t.add< FormulaDefinition >(
uToken, uToken, y, uToken, Role::axiom(), uToken, f, uToken, uToken );
t.add< FormulaDefinition >( y, Role::axiom(), f );
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥇

AT "@"
AND "&"
DOLLAR "$"
DOLLARDOLLAR "$$"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

src/Helper.cpp Outdated
#include "Helper.h"

using namespace libtptp;
/*
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove this compilation unit file Helper.cpp, because it does not contain any implementation!

src/Helper.h Outdated
using ListNodeElements = ListElements< Node >;

}
#endif /* _LIBTPTP_HELPER_H_ */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#endif /* _LIBTPTP_HELPER_H_ */
#endif // _LIBTPTP_HELPER_H_

}

const Token::Ptr Identifier::systemModifier( void ) const
const Token::Ptr& Identifier::modifier( void ) const
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks much better now!

src/Identifier.h Outdated
private:
const Token::Ptr m_systemModifier;
const Token::Ptr m_definedModifier;
const std::pair< const Token::Ptr, const std::string > modifierTokenFromName(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this function a class method? It is only used in the compilation unit Identifier.cpp, please remove this line here and use a static function implementation inside of the compilation unit.

, m_rightBraceToken( rightBraceToken )
{
}
ListLiteral::ListLiteral( const ListNodeElements::Ptr& elements )
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ListLiteral::ListLiteral( const ListNodeElements::Ptr& elements )
ListLiteral::ListLiteral( const ListNodeElements::Ptr& elements )

@ppaulweber ppaulweber merged commit 52fe7dc into master Mar 26, 2019
@ppaulweber ppaulweber deleted the feature/token_improvement branch March 26, 2019 21:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants