-
Notifications
You must be signed in to change notification settings - Fork 1
YAML parser library for cocoa.
marvelph/Yaml
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Yaml YAML parser library for cocoa. Kenji Nishishiro <marvel@programmershigh.org> - Build instructions 1.Get LibYAML library http://pyyaml.org/wiki/LibYAML 2. Add files to Xcode project from LibYAML yaml-0.1.3/src/api.c yaml-0.1.3/src/dumper.c yaml-0.1.3/src/emitter.c yaml-0.1.3/src/loader.c yaml-0.1.3/src/parser.c yaml-0.1.3/src/reader.c yaml-0.1.3/src/scanner.c yaml-0.1.3/src/writer.c yaml-0.1.3/src/yaml_private.h 3.Add header search path to Xcode project yaml-0.1.3/include 4. Add preprocessor macro to Xcode project YAML_VERSION_MAJOR=0 YAML_VERSION_MINOR=1 YAML_VERSION_PATCH=3 YAML_VERSION_STRING=\"0.1.3\" 5. Add files to Xcode project from Yaml YamlParser.h YamlParser.m - How to use Yaml NSObject *obj = [YamlParser objectFromString:@"<here is YAML text>"]; Returned obj is NSArray or NSDictionary or NSNumber or NSDate. YAML -> Objective-C Decimal -> NSNumber Float -> NSNumber Date -> NSDate String -> NSString Sequence -> NSArray Mapping -> NSDictionary Boolean and timestamp and null is unsupported yet. Specific data type by exclamation mark is unsupported. - Licence Copyright (c) 2010 Kenji Nishishiro Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.