Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Meta: v0 language spec #74

Open
9 of 37 tasks
thosakwe opened this issue Apr 25, 2018 · 1 comment
Open
9 of 37 tasks

Meta: v0 language spec #74

thosakwe opened this issue Apr 25, 2018 · 1 comment

Comments

@thosakwe
Copy link
Contributor

thosakwe commented Apr 25, 2018

Knowing myself, I will come up with a new idea every day until the project dies and drown in work that will never be completed.

So, a final list of language features (will also help for writing the spec):

  • Compilation Unit
    • Import Declaration (as, hide, show)
    • Typedef declaration
    • Enum (+sugar)
    • Struct type
    • Function type
    • ID type
    • Array type
    • Functions
      • Declaration
        • Signature
        • Body
    • Statements
      • Expression statement
      • Return
      • Throw
      • Try/catch/finally
      • While/do while
      • Expressions
        • Number
        • ID
        • Namespaced (i.e. constructor tear-off)
        • Call
        • for
        • if
        • match
        • when
        • Parenthesized
        • Tuple
        • Object/map literal
        • Range (+step) ex. 1..2, 3
        • Array literal
        • Simple string
        • Binary
        • Binary assignment
        • Subscript
        • Prefix (tilde, increment, positive, negative)
        • Postfix (increment)
@thosakwe thosakwe changed the title Final language spec Meta: Final language spec Apr 25, 2018
@thosakwe
Copy link
Contributor Author

Anything unchecked is missing a formal spec or parsing, typically both. Won't be checked until both are in place.

@thosakwe thosakwe added this to the v0 Language Spec milestone Apr 25, 2018
@thosakwe thosakwe changed the title Meta: Final language spec Meta: v0 language spec Apr 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant