This commit is contained in:
2024-08-07 09:16:27 -04:00
parent fdfadd5c7e
commit 5f971cf684
5200 changed files with 731717 additions and 0 deletions

41
music/ChordCompiler.hpp Normal file
View File

@@ -0,0 +1,41 @@
#ifndef _MUSIC_CHORDCOMPILER_HPP_
#define _MUSIC_CHORDCOMPILER_HPP_
#ifndef _MUSIC_SCANNER_HPP_
#include <music/scanner.hpp>
#endif
#ifndef _MUSIC_PARSER_HPP_
#include <music/parser.hpp>
#endif
namespace Music
{
class ChordCompiler
{
public:
ChordCompiler();
virtual ~ChordCompiler();
bool compile(const String &strChord,Music::Chord &chord);
private:
Scanner mScanner;
Parser mParser;
};
inline
ChordCompiler::ChordCompiler()
{
}
inline
ChordCompiler::~ChordCompiler()
{
}
inline
bool ChordCompiler::compile(const String &strChord,Music::Chord &chord)
{
if(!mScanner.scan(strChord))return false;
if(!mParser.parse(mScanner,chord))return false;
return true;
}
};
#endif