Skip to content

Commit

Permalink
Merge pull request #5 from danini-the-panini/kdl-v2
Browse files Browse the repository at this point in the history
KDL 2.0
  • Loading branch information
danini-the-panini authored Jan 2, 2025
2 parents 04f04bb + e8593cf commit 12d4add
Show file tree
Hide file tree
Showing 67 changed files with 6,429 additions and 2,701 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,14 @@ jobs:
build:
runs-on: ubuntu-latest

container:
image: google/dart:latest

steps:
- uses: actions/checkout@v2
with:
submodules: true

- name: Print Dart SDK version
run: dart --version

- uses: dart-lang/setup-dart@v1
with:
sdk: stable

- name: Install dependencies
run: dart pub get
Expand Down
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
[submodule "test/kdl-org"]
path = test/kdl-org
url = git@github.com:kdl-org/kdl
[submodule "test/v1/kdl-org"]
path = test/v1/kdl-org
url = git@github.com:kdl-org/kdl
branch = release/v1
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
dart 3.2.6
dart 3.6.0
5 changes: 5 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
include: package:lints/recommended.yaml

linter:
rules:
- public_member_api_docs
13 changes: 0 additions & 13 deletions example/Cargo.kdl

This file was deleted.

46 changes: 0 additions & 46 deletions example/ci.kdl

This file was deleted.

2 changes: 1 addition & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:kdl/kdl.dart';

main() {
var document = Kdl.parseDocument("""
var document = KdlDocument.parse("""
node 1 2 3 "foo" bar="baz" {
childNode 1
childNode 2
Expand Down
178 changes: 0 additions & 178 deletions example/nuget.kdl

This file was deleted.

11 changes: 5 additions & 6 deletions lib/kdl.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import 'package:kdl/src/parser.dart';
/// Exports the public interface of KDL
library;

abstract class Kdl {
static parseDocument(String string, { Map<String, Function> typeParsers = const {}, bool parseTypes = true }) {
return KdlParser().parse(string, typeParsers: typeParsers, parseTypes: parseTypes);
}
}
export 'src/document.dart';
export 'src/exception.dart';
export 'src/types.dart';
Loading

0 comments on commit 12d4add

Please sign in to comment.