Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

[Bug 14893] LCB: Emit warnings for identifiers that may cause problems.#2051

Merged
peter-b merged 7 commits into
livecode:developfrom
peter-b:bugfix-14893
Mar 13, 2015
Merged

[Bug 14893] LCB: Emit warnings for identifiers that may cause problems.#2051
peter-b merged 7 commits into
livecode:developfrom
peter-b:bugfix-14893

Conversation

@peter-b

@peter-b peter-b commented Mar 12, 2015

Copy link
Copy Markdown
Contributor

No description provided.

peter-b added 2 commits March 12, 2015 14:58
If the "master" copies of the gentle grammars in
`toolchain/lc-compile/src` are modified, they need to be re-replicated
into the `_stage` subdirectories.
@peter-b peter-b added the WIP label Mar 12, 2015
@peter-b peter-b added this to the 8.0.0-dp-2 milestone Mar 12, 2015
@runrevmark runrevmark changed the title [Bug 14893] Emit warnings for identifiers that may cause problems. [Bug 14893] LCB: Emit warnings for identifiers that may cause problems. Mar 12, 2015
peter-b added 3 commits March 13, 2015 09:21
Since lowercase identifiers are reserved for syntax, lc-run should use
a default handler called `Main()` not `main()`.

For the time being:

1) look for a handler called `Main()`, or
2) look for a handler called `main()` and emit a deprecation warning, or
3) print an error message.
Forbid syntax keywords from having ambiguities with valid identifiers.
This is currently accomplished by forbidding syntax keywords from
matching `[A-Z0-9_.]`.
Conflicts:
	tests/lcb/stdlib/math.lcb
@runrevmark

Copy link
Copy Markdown
Contributor

Reviewed-by: @runrevmark.

peter-b added a commit that referenced this pull request Mar 13, 2015
[Bug 14893] LCB: Emit warnings for identifiers that may cause problems.
@peter-b peter-b merged commit d017ddf into livecode:develop Mar 13, 2015
@peter-b peter-b deleted the bugfix-14893 branch March 13, 2015 15:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants