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

Proposed changes to hackfile to parse datscript #2

Closed
melaniecebula opened this issue Jan 9, 2015 · 1 comment
Closed

Proposed changes to hackfile to parse datscript #2

melaniecebula opened this issue Jan 9, 2015 · 1 comment

Comments

@melaniecebula
Copy link
Collaborator

Context: dat-ecosystem-archive/gasket#17

Current Syntax

{name}
(indent){arg1} {arg2}...

Datscript/Proposed Syntax

Command Parsing:

{name} {arg1}
(indent){arg2}
(indent){arg3}
  ....

OR

{name}
(indent){arg1}
(indent){arg2}
(indent){arg3}
  ....

Examples:

Input:

foo echo b
  echo a

bar
  echo c
  echo d

Output:

{
  'foo': ['echo b', 'echo a'],
  'bar': ['echo c', 'echo d']
}

Note: Currently, "echo" and "b" would be treated as different args rather than one arg.

TODO:

  • handling nested indents
@melaniecebula
Copy link
Collaborator Author

@mafintosh @maxogden Please chime in with ideas!

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