Add flag for JULIA parsing

This commit is contained in:
Alex Beregszaszi 2017-04-26 17:07:38 +01:00
parent 122dc65b36
commit b48bc81d40

View File

@ -37,7 +37,7 @@ namespace assembly
class Parser: public ParserBase
{
public:
Parser(ErrorList& _errors): ParserBase(_errors) {}
explicit Parser(ErrorList& _errors, bool _julia = false): ParserBase(_errors), m_julia(_julia) {}
/// Parses an inline assembly block starting with `{` and ending with `}`.
/// @returns an empty shared pointer on error.
@ -70,6 +70,9 @@ protected:
FunctionDefinition parseFunctionDefinition();
Statement parseFunctionalInstruction(Statement&& _instruction);
std::string expectAsmIdentifier();
private:
bool m_julia = false;
};
}