Skip to content

Latest commit

 

History

History
556 lines (504 loc) · 8.25 KB

errs.org

File metadata and controls

556 lines (504 loc) · 8.25 KB

Valid Example

Template Properties

  • Title:
    • “test”
  • Language:
    • English
  • Arguments:

Raw Template

this is some free text

Errors


Title

Empty Title

Template Properties

  • Title:
    • ””
  • Language:
    • English
  • Arguments:

Raw Template

this is some free text

Errors

Title Errors
Template title cannot be be empty.

Space in Title

Template Properties

  • Title:
    • “test ”
  • Language:
    • English
  • Arguments:

Raw Template

this is some free text

Errors

Title Errors
`SPACE` is not allowed in template title.

Invalid Character in Title

Template Properties

  • Title:
    • “test)”
  • Language:
    • English
  • Arguments:

Raw Template

this is some free text

Errors

Title Errors
`)` is not allowed in template title.

Arguments

Empty Argument

Template Properties

  • Title:
    • “test”
  • Language:
    • English
  • Arguments:
    • ””

Raw Template

this is some free text

Errors

Argument Errors
Argument 0:
Argument cannot be be empty.

Invalid character in argument

Template Properties

  • Title:
    • “test”
  • Language:
    • English
  • Arguments:
    • “(test”

Raw Template

this is some free text

Errors

Argument Errors
Argument 0: (test
`(` is not allowed in arguments.

Invalid argument used

Template Properties

  • Title:
    • “test”
  • Language:
    • English
  • Arguments:
    • “test”

Raw Template

{not-test}

Errors

Argument Errors
`not-test` is used as an argument invocation in template. `not-test` does not exist in argument list.

Language

No Language

Template Properties

  • Title:
    • “test”
  • Language:
  • Arguments:

Raw Template

this is some free text

Errors

Language Errors
Please select a language. Templates must be assigned a specifc language.

Role

Role does not exist in language

Template Properties

  • Title:
    • “test”
  • Language:
    • English
  • Arguments:

Raw Template

{fake-role:"abc"}

Errors

Role Errors
`fake-role` is used as a role. `fake-role` is not a valid role for language: english

Slot Syntax

Empty Input

Template Properties

  • Title:
    • “test”
  • Language:
    • English
  • Arguments:

Raw Template


Errors

Syntax Errors
Line: 1 | Column: 0
Syntax Error:

Empty input

Empty Slot

Template Properties

  • Title:
    • “test”
  • Language:
    • English
  • Arguments:

Raw Template

{}

Errors

Syntax Errors
Line: 1 | Column: 0
Syntax Error:

Slot is empty

Additional `}` used

Template Properties

  • Title:
    • “test”
  • Language:
    • English
  • Arguments:

Raw Template

this is some free text }

Errors

Syntax Errors
Line: 1 | Column: 23
Syntax Error:

Additional `}` found. Slots must be enclosed between `{` and `}`. Did you forget to include an opening `{` ?

Missing Close Brace

Template Properties

  • Title:
    • “test”
  • Language:
    • English
  • Arguments:

Raw Template

this is some free text {"test"

Errors

Syntax Errors
Line: 1 | Column: 23
Syntax Error:

Slot is not closed. Missing `}`

Dependency Label Syntax

Empty Label

Template Properties

  • Title:
    • “test”
  • Language:
    • English
  • Arguments:

Raw Template

{:"test"}

Errors

Line: 1 | Column: 1
Syntax Error:

Label is Empty.

Empty Source Label

Template Properties

  • Title:
    • “test”
  • Language:
    • English
  • Arguments:

Raw Template

{nmod<:"test"}

Errors

Syntax Errors
Line: 1 | Column: 6
Syntax Error:

Label is Empty.

Empty Role

Template Properties

  • Title:
    • “test”
  • Language:
    • English
  • Arguments:

Raw Template

{_12:"test"}

Errors

Syntax Errors
Line: 1 | Column: 1
Syntax Error:

Role is empty.

Invalid Character in Role Identifier

Template Properties

  • Title:
    • “test”
  • Language:
    • English
  • Arguments:

Raw Template

{nmo(d:"test"}

Errors

Line: 1 | Column: 4
Syntax Error:

Role: nmo
`(' is not a valid character for Role.

Invalid Role format:
Format must be in the form:
One word identifier. eg. `nummod` or `noun`

TIP:
`(` and `)` are used to enclose function arguments.
Function arguments can be either:
One of the Template's arguments.
or
A string (eg. "this is a string.").
or
A nested function (eg. `my-template()`).

Empty Index

Invalid Character in Index

Template Properties

  • Title:
    • “test”
  • Language:
    • English
  • Arguments:

Raw Template

{nmod_a:"test"}

Errors

Line: 1 | Column: 6
Syntax Error:

`a' is not a valid character for Index.

Invalid Index format:
Format must be in the form:
Indexes can only contain digits from 0-9. `_` must be followed by a number stating the role's index.
TIP: The index indicates precedance when multiple roles share the same identifier.
Separation of multi-word identifiers can be done with
camelCase (capitaliseEachWord)
or kebab-case (put-a-hyphen-between-each-word).

Invocation Syntax

Empty Invocation

Template Properties

  • Title:
    • “test”
  • Language:
    • English
  • Arguments:

Raw Template

{nmod:}

Errors

Line: 1 | Column: 6
Syntax Error:

Invocation is empty.
Invocation's are either:
Function (eg. sub-template)
or
Interpolation of argument
or
String

Unending String

Template Properties

  • Title:
    • “test”
  • Language:
    • English
  • Arguments:

Raw Template

{nmod:"}

Errors

Line: 1 | Column: 5
Syntax Error:

String is missing closing `"`

Invalid Character in Invocation

Template Properties

  • Title:
    • “test”
  • Language:
    • English
  • Arguments:

Raw Template

{x"}

Errors

Line: 1 | Column: 1
Syntax Error:

Invocation: x"
`"' is not a valid character for Invocation.

Invalid Invocation format:
Format must be in the form:
Function (eg. sub-template)
or
Interpolation of argument
or
String

TIP: `"` must surround a string invocation.

Function Syntax

Missing Function Name

Template Properties

  • Title:
    • “test”
  • Language:
    • English
  • Arguments:

Raw Template

{("test")}

Errors

Line: 1 | Column: 1
Syntax Error:

Function (sub-template) is missing a name.

Invalid Character in Function Name

Template Properties

  • Title:
    • “test”
  • Language:
    • English
  • Arguments:

Raw Template

{nmod:fnam{e()}

Errors

Line: 1 | Column: 5
Syntax Error:

Invocation: fnam
`{' is not a valid character for Invocation.

Invalid Invocation format:
Format must be in the form:
Function (eg. sub-template)
or
Interpolation of argument
or
String

Missing Closing `)`

Template Properties

  • Title:
    • “test”
  • Language:
    • English
  • Arguments:

Raw Template

{nmod:fname(}

Errors

Line: 1 | Column: 5
Syntax Error:

Error with function `fname':
Function arguments are not closed. Missing `)`

Extra `)`

Template Properties

  • Title:
    • “test”
  • Language:
    • English
  • Arguments:

Raw Template

{nmod:fname())}

Errors

Line: 1 | Column: 12
Syntax Error:

Error with function `fname':
Extra `)` encountered. Perhaps you forgot to include `(` to open a nested function call?

Argument Invocation

Template Properties

  • Title:
    • “test”
  • Language:
    • English
  • Arguments: “x”

Raw Template

{fname(x<)}

Errors

Line: 1 | Column: 7
Syntax Error:

Error with function `fname':
Invocation: x<
`<' is not a valid character for Invocation.

Invalid Invocation format:
Format must be in the form:
Function (eg. sub-template)
or
Interpolation of argument
or
String

TIP: `<` is prefixed before source labels.