Solidity parser - not polished yet, but usable

First shot at the solidity parser. It generates an AST and infers and checks the types for each expression node.

Mappings and structs are parsed, but not yet integrated into the type system.
was probably talking about the "class Declaration : public ..." -> "class
Declaration: public ..."



On Fri, Oct 17, 2014 at 12:49 AM, chriseth <notifications@github.com> wrote:

> In libsolidity/AST.h:
>
> > +	template <class T>
> > +	static void listAccept(vecptr<T>& _list, ASTVisitor& _visitor)
> > +	{
> > +		for (ptr<T>& element : _list)
> > +			element->accept(_visitor);
> > +	}
> > +
> > +	Location const& getLocation() const { return m_location; }
> > +private:
> > +	Location m_location;
> > +};
> > +
> > +class Declaration : public ASTNode
> > +{
> > +public:
> > +	Declaration(Location const& _location, ptr<ASTString> const& _name)
>
> Are you talking about the ':' or also the rest of the line following it?
> If it is the latter: I would like to keep my lines shorter than 100
> characters (one benefit is that they are visible in this code review view)
> and sacrifice the restriction of some statements being on a single line for
> that.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/ethereum/cpp-ethereum/pull/381/files#r18989370>.
>



-- 
Gav Wood