Skip to content

Commit

Permalink
Reorganize the grammar to fit TypeScript (#4)
Browse files Browse the repository at this point in the history
This commit introduces element-level schema definitions:
- TypeScript-like type definition syntax
- Primitive types and Element types of Yorkie
- Support for user-defined types

Test code has been added to validate these grammar specifications.

* Add diagnostics for CodeMirror (#5)

This commit introduces a CodeMirror editor example for validating
Yorkie schema. Users can now visually inspect and validate Yorkie
schema directly in the browser. Currently, the validation only
highlights parsing errors.

Future improvements could include detection and display of semantic
errors for a more comprehensive schema validation experience.

---------

Co-authored-by: Sumi Jeong <[email protected]>
Co-authored-by: Yourim Cha <[email protected]>
  • Loading branch information
3 people authored Oct 8, 2024
1 parent a9c586b commit 2bdca90
Show file tree
Hide file tree
Showing 27 changed files with 3,627 additions and 1,950 deletions.
46 changes: 0 additions & 46 deletions antlr/Schema.g4

This file was deleted.

49 changes: 0 additions & 49 deletions antlr/Schema.interp

This file was deleted.

24 changes: 0 additions & 24 deletions antlr/Schema.tokens

This file was deleted.

56 changes: 0 additions & 56 deletions antlr/SchemaLexer.interp

This file was deleted.

24 changes: 0 additions & 24 deletions antlr/SchemaLexer.tokens

This file was deleted.

132 changes: 0 additions & 132 deletions antlr/SchemaLexer.ts

This file was deleted.

Loading

0 comments on commit 2bdca90

Please sign in to comment.