From 2aa4afed415b02add73c2dd5a3e9ccab90066d04 Mon Sep 17 00:00:00 2001 From: Alex Merry Date: Sat, 23 Mar 2013 00:45:23 +0000 Subject: Make the parser more coherent We build things up in stacks in the parser, rather than relying on TikzGraphAssembler so much. This makes tikzparser.ym easier to follow (IMHO). --- tikzit/src/common/GraphElementProperty.m | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tikzit/src/common/GraphElementProperty.m') diff --git a/tikzit/src/common/GraphElementProperty.m b/tikzit/src/common/GraphElementProperty.m index 2eb6a5f..1e8ad3a 100644 --- a/tikzit/src/common/GraphElementProperty.m +++ b/tikzit/src/common/GraphElementProperty.m @@ -27,6 +27,16 @@ @implementation GraphElementProperty ++ (id)atom:(NSString*)n { + return [[[self alloc] initWithAtomName:n] autorelease]; +} ++ (id)property:(NSString*)k withValue:(NSString*)v { + return [[[self alloc] initWithPropertyValue:v forKey:k] autorelease]; +} ++ (id)keyMatching:(NSString*)k { + return [[[self alloc] initWithKeyMatching:k] autorelease]; +} + - (id)initWithAtomName:(NSString*)n { [super init]; [self setKey:n]; -- cgit v1.2.3