Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
joajfreitas committed Jan 11, 2025
1 parent 6dcd170 commit 0f28c0b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tree-sitter-fcp/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import sys

import tree_sitter_fcp as tsfcp
from tree_sitter import Language, Parser

FCP_LANGUAGE = Language(tsfcp.language())

parser = Parser(FCP_LANGUAGE)

with open(sys.argv[1], 'rb') as f:
r = parser.parse(f.read())

print(r.root_node.children)

0 comments on commit 0f28c0b

Please sign in to comment.